Skip to content
This repository was archived by the owner on Jan 21, 2024. It is now read-only.
This repository was archived by the owner on Jan 21, 2024. It is now read-only.

Issue adding HTML to a comunity via API (Social Business Toolkit SDK) in Connections 5.5 #1778

@csandres

Description

@csandres

After migrate from Connections 4.5 to Connections 5.5, we have an issue adding HTML (link to a document) to a comunity via API (Social Business Toolkit SDK).
We have a workflow that when you create a document in Websphere Portal it is published (via SBT) in a community in Connections:

… statusMsg = " - <a href=\""+pathContent+ "\">" + title+ "</a>"; postPayload.put("content", statusMsg); ActivityStreamService actSvc = new ActivityStreamService(ep); String entryId = actSvc.postMicroblogEntry("urn:lsid:lconn.ibm.com:communities.community:" + idCommunity,"@all","",postPayload); …

In Connections 4.5, the link is escaped in order to show correctly:

statusMsg = " - &#60;a href=\"&#104;&#116;&#116;&#112;&#115;&#58;&#47;&#47;" + path + "\"&#62;" + title+ "&#60;&#47;a&#62;";

imagen

But in Connection 5.5, it shows the characters codes:

imagen

How should content (a link) be created in Connections 5.5 using the SBT API as we do in Connections 4.5?
Thanks in advance.
Regard.

Metadata

Metadata

Assignees

No one assigned

    Labels

    No labels
    No labels

    Type

    No type

    Projects

    No projects

    Milestone

    No milestone

    Relationships

    None yet

    Development

    No branches or pull requests

    Issue actions