cancel
Showing results for 
Search instead for 
Did you mean: 

Is there a way to Post a URL in content of a Discussion as Hyperlink in JAM via Odata??

Former Member
0 Kudos

I tried creating a discussion in SAP JAM via OData services exposed. I am able to post a plain text. But If I have a URL as content, I was not able to see that posted as a hyperlink. Is there any way to do that programatically????

I even went to check the network call when publish button is clicked in JAM and I saw the request body to be in different format. Please suggest me if there are any work around to achieve this or if there is anything that I am missing . Below is the code snippet of what i tried in JAM Odata APIs.


URL :

https://developer.sapjam.com/api/v1/OData/Forums('cuoh1MENQkgVcfJvQdicAy')/Discussions

Body :

{

"Name":"Test from API",

"Content":"Please refer the url http://www.google.com"

}

Accepted Solutions (1)

Accepted Solutions (1)

former_member47640
Active Contributor
0 Kudos

use this code;

{

"Name":"Test from API",

"Content":"Please refer to the URL <a href=\"http://www.sap.com\">http://www.sap.com</a></p>"

}

Former Member
0 Kudos

Thank you . It worked

Answers (0)