2

I am trying to search case,solution and KnowledgeArticles with following SOSL

FIND 'lithium' RETURNING Dissusion__kav (Title, Summary, LastPublishedDate, KnowledgeArticleId, UrlName WHERE PublishStatus = 'Online'), questionAndAnswer__kav (Title, Summary, LastPublishedDate, KnowledgeArticleId, UrlName WHERE PublishStatus = 'Online'), Case__kav (Title, Summary, LastPublishedDate, KnowledgeArticleId, UrlName WHERE PublishStatus = 'Online')

but on executing I am getting this Exception

You must specify a language WHERE clause for knowledge articles in this API version

But WHERE clause is already included .

3

Based on Question related to SOSL and Knowledge Articles, you need to append WHERE Language = 'en_US' at the outermost level:

... UrlName WHERE PublishStatus = 'Online') WHERE Language = 'en_US'

Your Answer

By clicking “Post Your Answer”, you agree to our terms of service, privacy policy and cookie policy

Not the answer you're looking for? Browse other questions tagged or ask your own question.