Newer Version Available
Articles Details
Syntax
- Available since release
- 38.0
- Method
- GET
- Formats
- JSON, XML
- Authentication
- OAuth accesstoken
- Endpoint
- [prefix]/support/knowledgeArticles/{articleId}
- HTTP headers
-
Accept: Optional. Can be either application/json or application/xml.Accept-language: Required. The article must be an active language in the user’s organization
- If the language code isn’t valid, an error message is returned: “The language code is not valid or not supported by Knowledge.”
- If the language code is valid, but not supported by Knowledge, then an error message is returned: “Invalid language code. Check that the language is included in your Knowledge language settings."
- Input:
-
string channel: Optional, defaults to user’s context. For information on channel values, see Valid channel Values.
- App: Visible in the internal Salesforce Knowledge application
- Pkb: Visible in the public knowledge base
- Csp: Visible in the Customer Portal
- Prm: Visible in the Partner Portal
-
boolean updateViewStat: Optional, defaults to true. If true, API updates the view count in the given channel as well as the total view count.
- Output:
- The detailed fields of the article, if the article is online and visible to the current user.
-
Article Detail
Full detail of an article, with complete metadata and layout-driven fields used for display of an article. It includes all the same properties as an Article Summary representation.
-
User
Summary
-
Article Field
An individual field of article information, which is listed in an Article Detail in the order required by the administrator’s layout.
-
Article Detail
Example
- Input
-
- Output
-
Usage
Salesforce Knowledge must be enabled in your organization. This resource can be used in API version 38.0 and later. The Custom File Field is not supported because it returns a link to a binary stream. Use the language code format used in Which Languages Does Salesforce Support?.
- archivedBy
- isLatestVersion
- translationCompletedDate
- translationImportedDate
- translationExportedDate
- versionNumber
- visibleInInternalApp
- visibleInPKB
- visibleToCustomer
- visbileToPartner
Valid channel Values
- When using the options string channel, where the matching articles
are visible, the following values are valid.
- App–Visible in the internal Salesforce Knowledge application
- Pkb–Visible in the public knowledge base
- Csp–Visible in the Customer Portal
- Prm–Visible in the Partner Portal
- If channel isn’t specified, the default value is determined
by the type of user.
- Pkb for a guest user
- Csp for a Customer Portal user
- Prm for a Partner Portal user
- App for any other type of user
- If channel is specified, the specified value may be used to
retrieve articles.
- For guest, Customer Portal, and Partner Portal users, if the specified channel is other than the channel accessible to the user, an error is returned.
- For all users other than guest, Customer Portal, and Partner Portal users, the specified channel value is used.