---
schema_version: "1"
id: a13f2168a1893c3c24ff3845d3ea8296f0a3d615de4577d6ee96104e45266bc4
title: TopicsForObjects
collection: legacydeveloper
version: current
locale: en-us
portal_url: https://docs.salesforce.com/legacydeveloper/current/en-us/api_meta/meta_topicsforobjects.md
canonical_url: https://developer.salesforce.com/docs/atlas.en-us.api_meta.meta/api_meta/meta_topicsforobjects.htm
source_site: developer.salesforce.com
content_type: documentation
content_hash: b99ccf59af76b6e2320c52ff3b6ec82cabd1e8d6b9f665d631b36edf1cf84bbb
description: Represents the ability to assign topics to objects or to remove topic assignments.
---
# TopicsForObjects

Represents the ability to assign topics to objects or to remove topic assignments.

## File Suffix and Directory Location

TopicsForObjects components have the suffix .topicsForObjects and are stored in the topicsForObjects folder of the corresponding package directory.

## Version

TopicsForObjects components are available in API version 41.0 and later.

## Fields

<table class="featureTable sort_table" summary="">



          <thead class="thead sorted" align="left">
            <tr>
              <th class="featureTableHeader  " id="d902821e81">Field Name</th>

              <th class="featureTableHeader  " id="d902821e84">Field Type</th>

              <th class="featureTableHeader  " id="d902821e87">Description</th>

            </tr>

          </thead>

          <tbody class="tbody">
            <tr>
              <td class="entry" headers="d902821e81" data-title="Field Name"><span class="keyword parmname">enableTopics</span></td>

              <td class="entry" headers="d902821e84" data-title="Field Type">boolean</td>

              <td class="entry" headers="d902821e87" data-title="Description">Required. When true, indicates whether users can assign topics or remove topic
                assignments. When false, users can’t assign or remove topics.<div class="p">Upon org creation,
                  this value is true for the following objects:<ul class="ul bulletList">
                    <li class="li">Account</li>

                    <li class="li">Asset</li>

                    <li class="li">Campaign</li>

                    <li class="li">Case</li>

                    <li class="li">Contact</li>

                    <li class="li">Content Document</li>

                    <li class="li">Contract</li>

                    <li class="li">Event</li>

                    <li class="li">Lead</li>

                    <li class="li">Opportunity</li>

                    <li class="li">Order</li>

                    <li class="li">Solution</li>

                    <li class="li">Task</li>

                  </ul>
                </div>
                <p class="p">For all remaining standard objects and custom objects, the default is
                  false.</p>
              </td>

            </tr>

            <tr>
              <td class="entry" headers="d902821e81" data-title="Field Name"><span class="keyword parmname">entityApiName</span></td>

              <td class="entry" headers="d902821e84" data-title="Field Type">string</td>

              <td class="entry" headers="d902821e87" data-title="Description">Required. Indicates the object’s API name for enabling topics.</td>

            </tr>

          </tbody>

        </table>

## Declarative Metadata Sample Definition

The following is an example of a TopicsForObjects component.

<?xml version="1.0" encoding="UTF-8"?>
<TopicsForObjects xmlns="http://soap.sforce.com/2006/04/metadata">
       <enableTopics\>false</enableTopics\>
       <entityApiName\>Account</entityApiName\>
</TopicsForObjects\>

The following is an example package.xml that references the previous definition.

<?xml version="1.0" encoding="UTF-8"?>
<Package xmlns="http://soap.sforce.com/2006/04/metadata">
<types\>
<members\>\*</members\>
<name\>TopicsForObjects</name\>
</types\>
<version\>41.0</version\>
</Package\>

## Wildcard Support in the Manifest File

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](https://developer.salesforce.com/docs/atlas.en-us.264.0.api_meta.meta/api_meta/file_based_zip_file.htm).