- Marketing Cloud
Experiences
Access Trailhead, your Trailblazer profile, community, learning, original series, events, support, and more.
Search Tips:
- Please consider misspellings
- Try different search keywords
TopicAssignment
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.
Supported Calls
create() , describeSObjects() , delete() , getDeleted() , getUpdate() , query() , retrieve()
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:
No SOQL limit if logged-in user has “View All Data” permission. If not, do one of the following:
- Specify a LIMIT clause of 1,100 records or fewer.
- Filter on Id or Entity when using a WHERE clause with "=".
IMAGES
VIDEO
COMMENTS
Represents the assignment of a topic to a specific feed item, record, or file. This object is available in API version 28.0 and later.
What you need here is TopicAssignment. Represents the assignment of a topic to a specific feed item, record, or file. This object is available in API version 28.0 and later. So your query should look something like this: SELECT EntityType,Topic.Name FROM TopicAssignment. WHERE TopicId IN.