Newer Version Available
SObject Suggested Articles
Returns a list of suggested Salesforce Knowledge articles for a case, work
order, or work order line item.
Syntax
- URI
- To return suggested articles for a case, work order, or work order line item that is being created, use vXX.X/sobjects/SObject/suggestedArticles?language=article language&subject=subject&description=description. The SObject can be Case, WorkOrder, or WorkOrderLineItem. Suggestions are based on common keywords in the title, description, and other information that’s entered before the record has been saved and assigned an ID.
- For example: vXX.X/sobjects/Case/suggestedArticles?language=article language&subject=subject&description=description or vXX.X/sobjects/WorkOrder/suggestedArticles?language=article language&subject=subject&description=description.
- To return suggested articles for an existing record with an ID, use vXX.X/sobjects/SObject/ID/suggestedArticles?language=article language
- Available since release
- 30.0
- Formats
- JSON, XML
- HTTP methods
- GET
- Authentication
- Authorization: Bearer token
- Request body
- None required
- Request parameters
-
Example for getting suggested articles for a case that’s being created
Example JSON response body
Usage
Salesforce Knowledge must be enabled in your organization. The user must have the “View Articles” permission enabled. The articles suggested include only the articles the user can access, based on the data categories and article types the user has permissions to view.
Articles are suggested based on a relevance algorithm. The suggestedArticles resource is designed to get the IDs of articles relevant to a case, work order, or work order line item. It’s intended to be used with other services that then use the IDs to get article data for display.