Newer Version Available

This content describes an older version of this product. View Latest

Update Article View Statistics with the Salesforce Object Search Language

The optional UPDATE VIEWSTAT clause is used to report on Salesforce Knowledge article searches and views. It allows developers to update an article’s view statistics.

You can use this syntax to increase the view count for every article you have access to online in US English:

1FIND {Title}
2RETURNING FAQ__kav (Title WHERE PublishStatus="Online" and
3language="en_US" and
4KnowledgeArticleVersion = 'ka230000000PCiy')
5UPDATE VIEWSTAT