Does anyone know if it's possible to access KnowledgeArticle content over the Salesforce REST API? All I can find are the KnowledgeArticle and KnowledgeArticleVersion objects which seem to have only the Title and Summary of the article.
- Anybody can ask a question
- Anybody can answer
- The best answers are voted up and rise to the top
I'm not fully up to date with Salesforce Knowledge articles, but I did find Retrieve a Version of an Article in the Salesforce Knowledge Developer's Guide.
It's a bit short on details, which I suspect is related to the API being in pre-release.
There is also the Salesforce Knowledge Objects Data Model. It has plenty of polymorphic references to other sObjects, but nothing that stands out as "content" to me.
Here's some more information to expand upon Daniel's findings:
Yes, you can retrieve article content from salesforce via the REST API but the method is not very straightforward. This is related to the fact that all articles are versioned. This means that the article ID is separate from the ID of the currently published version of that article (master ID). This master ID is what you need to query for if you want the article content.
Below is an example of fetching article content:
First, you have to fetch the master ID for the article:
Then use the master ID to obtain the article content via your article sobject: