Newer Version Available

This content describes an older version of this product. View Latest

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
Type
reference
Properties
Create, Filter, Group, Sort
Description
Identifier of the feed item or record.
EntityKeyPrefix
Type
string
Properties
Filter, Group, Sort
Description
The first three digits of the EntityID field, which identify the object type (account, opportunity, etc). This read-only field is available in API version 32.0 and later.

Interface label is “Record Key Prefix,” which appears only in reports.

Because SOAP queries on this field are not case-sensitive, they may return multiple types of custom objects.

Note

NetworkId
Type
reference
Properties
Create, Filter, Group, Nillable, Sort
Description
Identifier of the community to which the TopicAssignment belongs. This field is available only if Salesforce Communities is enabled in your organization.
TopicId
Type
reference
Properties
Create, Filter, Group, Sort
Description
Identifier of the topic.

Usage

Use this object to query the assignments of topics to feed items or records.

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 "=".

To assign and remove topics from feed items or records, you must have the “Assign Topics” permission.