Newer Version Available
KnowledgeArticleViewStat
Provides statistics on the number of views for the specified article
across all article types. This object is read-only and available in API version 20 and
later.
Supported Calls
describeSObjects(), query(), retrieve()
Special Access Rules
Users must have access to the published version of an article to retrieve its views. For more information on published article version, see the PublishStatus field in KnowledgeArticleVersion.
Fields
Usage
Use this object to query or retrieve statistics for article views.
Alternatively, client applications can use the article type API Name followed by __ViewStat to query or retrieve most viewed articles from a specific article type.
SOQL Samples
The following SOQL clause uses KnowledgeArticleViewStat to query all the article views in Salesforce Knowledge and return the related articles:
1SELECT Id, NormalizedScore, Parent.Id
2FROM KnowledgeArticleViewStat where Channel = 'App'
3ORDER BY NormalizedScoreUse the following clause to restrict your query to Offer articles for the Offer article type:
1SELECT Id, NormalizedScore, Parent.Id
2FROM Offer__ViewStat where Channel = 'App'
3ORDER BY NormalizedScore