Newer Version Available
TopicAssignment
Represents the assignment of a topic to a specific feed item or record. This object is available in API version 28.0 and later. Topics for objects is available in API version 30.0 and later. Administrators must enable topics for objects before users can add topics to records of that object type.
Supported Calls
create(), describeSObjects(), query(), retrieve()
Fields
| Field Name | Details |
|---|---|
| EntityId |
|
| EntityKeyPrefix |
|
| EntityType |
|
| NetworkId |
|
| TopicId |
|
Usage
Use this object to query the assignments of topics to feed items or records. 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:
1SELECT parentId FROM KnowledgeArticleViewStat
2WHERE parentId in (SELECT KnowledgeArticleId FROM KnowledgeArticleVersion
3WHERE publishStatus = 'Online' AND language = 'en_US'
4AND Id in (select EntityId from TopicAssignment where TopicId ='0T0xx0000000xxx'))- Specify a LIMIT clause of 1,100 records or fewer.
- Filter on Id or Entity when using a WHERE clause with "=".