Newer Version Available

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

Update an Article’s Keyword Tracking with SOQL

Track keywords that are used in Salesforce Knowledge article searches with the UPDATE TRACKING optional clause on a SOQL query. UPDATE TRACKING is an optional clause that can be added to a SELECT statement of a SOQL query to report on article searches and views. Developers can use UPDATE TRACKING to track the keywords that are used in Salesforce Knowledge article searches.

Example

You can use this syntax to track a keyword that are used in Salesforce Knowledge article search:
1SELECT Title FROM FAQ__kav
2WHERE Keyword='Apex' and
3Language = 'en_US' and
4KnowledgeArticleVersion = 'ka230000000PCiy'
5UPDATE TRACKING