Administrators must enable topics for objects before users can add topics to records of that object type. Topics for most objects are available in API version 30.0 and later. Topics for ContentDocument are available in API version 37.0 and later.
create(), describeSObjects(), query(), retrieve()
Field Name | Details |
---|---|
EntityId |
|
EntityKeyPrefix |
|
EntityType |
|
NetworkId |
|
TopicId |
|
Use this object to query the assignments of topics to feed items, records, or files. To assign or remove topics, you must have the “Assign Topics” permission.
In SOQL SELECT syntax, this object supports nested semi-joins, allowing queries on Knowledge articles assigned to specific topics. For example:
SELECT parentId FROM KnowledgeArticleViewStat WHERE parentId in (SELECT KnowledgeArticleId FROM KnowledgeArticleVersion WHERE publishStatus = 'Online' AND language = 'en_US' AND Id in (select EntityId from TopicAssignment where TopicId ='0T0xx0000000xxx'))