web
You’re offline. This is a read only version of the page.
close
Skip to main content

Notifications

Announcements

No record found.

Community site session details

Community site session details

Session Id :
Microsoft Dynamics CRM (Archived)

Web API response - content of knowledge base article

(0) ShareShare
ReportReport
Posted on by 107

Hello,

I am trying to get the knowledge base article's content, but the WEB api doesn't return the content in html format with tags, any help please?

I am using CRM Rest builder of jlattimer 

var req = new XMLHttpRequest();
req.open("GET", Xrm.Page.context.getClientUrl() + "/api/data/v8.2/knowledgearticles(MyGuid)?$select=content", true);
req.setRequestHeader("OData-MaxVersion", "4.0");
req.setRequestHeader("OData-Version", "4.0");
req.setRequestHeader("Accept", "application/json");
req.setRequestHeader("Content-Type", "application/json; charset=utf-8");
req.setRequestHeader("Prefer", "odata.include-annotations=\"*\"");
req.onreadystatechange = function() {
if (this.readyState === 4) {
req.onreadystatechange = null;
if (this.status === 200) {
var result = JSON.parse(this.response);
var content = result["content"];
} else {
Xrm.Utility.alertDialog(this.statusText);
}
}
};
req.send();

]


Thank you

*This post is locked for comments

I have the same question (0)
  • Rickard Norström Profile Picture
    on at

    What result do you get if you append /api/data/v8.2/knowledgearticles(MyGuid)?$select=content to your organization url in a web browser? (like org.crm4.dynamics.com/.../knowledgearticles(MyGuid)$select=content)

Under review

Thank you for your reply! To ensure a great experience for everyone, your content is awaiting approval by our Community Managers. Please check back later.

Helpful resources

Quick Links

Responsible AI policies

As AI tools become more common, we’re introducing a Responsible AI Use…

Neeraj Kumar – Community Spotlight

We are honored to recognize Neeraj Kumar as our Community Spotlight honoree for…

Leaderboard > 🔒一 Microsoft Dynamics CRM (Archived)

#1
SA-08121319-0 Profile Picture

SA-08121319-0 4

#1
Calum MacFarlane Profile Picture

Calum MacFarlane 4

#3
Alex Fun Wei Jie Profile Picture

Alex Fun Wei Jie 2

Last 30 days Overall leaderboard

Featured topics

Product updates

Dynamics 365 release plans