TopicsForObjects
Represents the ability to assign topics to objects or to remove topic assignments.
This type extends Metadata and inherits its fields.
TopicsForObjects components have the suffix .topicsForObjects and are stored in the topicsForObjects folder of the corresponding package directory.
Introduced in API version 41.0.
-
Type: boolean
-
Required: Yes
-
Description: Required. When true, indicates whether users can assign topics or remove topic assignments. When false, users can’t assign or remove topics.
Upon org creation, this value is true for the following objects:
- Account
- Asset
- Campaign
- Case
- Contact
- Content Document
- Contract
- Event
- Lead
- Opportunity
- Order
- Solution
- Task
For all remaining standard objects and custom objects, the default is false.
- Type: string
- Required: Yes
- Description: Required. Indicates the object’s API name for enabling topics.
The following is an example of a TopicsForObjects component.
The following is an example package.xml that references the previous definition.
This metadata type supports the wildcard character * (asterisk) in the package.xml manifest file. For information about using the manifest file, see Deploying and Retrieving Metadata with the Zip File.