Skip to content
This repository has been 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

Open
csandres opened this issue Apr 6, 2018 · 0 comments

Comments

@csandres
Copy link

csandres commented Apr 6, 2018

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.

Sign up for free to subscribe to this conversation on GitHub. Already have an account? Sign in.
Labels
None yet
Projects
None yet
Development

No branches or pull requests

1 participant