1

I have found from the docs here that you can enable Topics to

classify and search articles by assigning topics.

Is it possible to utilize topics in SOQL? I'd like to do a query like this:

SELECT Id, (SELECT Id FROM KnowledgeArticles) FROM Topic WHERE Name LIKE :searchValue

Then I would return all the Ids from KnowledgeArticles to by custom lightning component that displays the search results.

1 Answer 1

3

It needs to use "TopicAssignment".

Try this:

SELECT EntityType, EntityId, Topic.Name 
  FROM TopicAssignment 
 WHERE Topic.Name = 'Test' AND
       EntityType = 'Knowledge'

You must log in to answer this question.

Not the answer you're looking for? Browse other questions tagged .