Salesforce Stack Exchange is a question and answer site for Salesforce administrators, implementation experts, developers and anybody in-between. It's 100% free, no registration required.

Sign up
Here's how it works:
  1. Anybody can ask a question
  2. Anybody can answer
  3. The best answers are voted up and rise to the top

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.

share|improve this question
up vote 1 down vote accepted

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.

share|improve this answer

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:

// Request  

// Result (truncated to for simplicity)
  "draftArticleMasterVersionId": "am0k000000000HmAAB",
  "onlineArticleMasterVersionId": "am0k000000000HmAAA"   // <-- Master ID

Then use the master ID to obtain the article content via your article sobject:

Note: This will be API name of whatever you chose to name your Article Type in salesforce (Setup > Customize > Knowledge > Article Types). In my case my article type label is Knowledge Base so the sobject is "Knowledge_Base__kav"

// Request

// Result (truncated to for simplicity)
  "Title": "How to do some action",
  "Summary": "This article show you how to do some action",
  "ArticleNumber": "000001260",
  "Description__c": "Example article description on how to do some action"
share|improve this answer
So this only seems to cover getting a title and summary, it seems like the actual content is not available. Is that correct? – Ralph Callaway May 7 '15 at 22:48

Your Answer


By posting your answer, you agree to the privacy policy and terms of service.

Not the answer you're looking for? Browse other questions tagged or ask your own question.