Newer Version Available

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

Track Search Keywords with the Salesforce Object Search Language

The UPDATE TRACKING clause is used to report on Salesforce Knowledge article searches and views. It allows developers to track the keywords used in Salesforce Knowledge article searches. Also, the language attribute can be used to search by a specific language (locale). However, only one language can be specified in a single query. Make a separate query for each language that you want. Use the Java format, which uses the underscore (for example, fr_FR, jp_JP, and so on), to supply locales. Search the Web for “java locale codes” to get a list of supported locales.

You can use this syntax to track a keyword used in Salesforce Knowledge article search:

1FIND {Keyword}
2RETURNING KnowledgeArticleVersion (Title WHERE PublishStatus="Online" and language="en_US")
3UPDATE TRACKING