ChatterExtension defines a Rich Publisher App integrated with the Chatter publisher. It identifies the components used to compose and render the app's content and supplies the publisher-facing text and icon.
The extension is configuration, not the component implementation. Its composer and renderer are separate dependencies whose code is not contained in the ChatterExtension definition. The app name in extensionName does not replace either component reference.
Key Elements
| Element | What the Element Controls |
|---|---|
compositionComponent |
Required. Identifies the composition component, which must implement lightning:availableForChatterExtensionComposer. |
renderComponent |
Required. Identifies the rendering component, which must implement lightning:availableForChatterExtensionRenderer. |
type |
Required. The only supported value is Lightning. |
headerText |
Text displayed in the app composer's header. Required for Lightning extensions and can be localized. |
hoverText |
Text displayed when a user hovers over the extension's icon. Required for Lightning extensions and can be localized. |
icon |
Required. Identifies the icon displayed in the Chatter publisher. The field definition specifies an existing file asset ID in the org. |
extensionName |
Required. Names the Rich Publisher App, rather than selecting its composer or renderer. |
isProtected |
An auto-generated boolean with no functional effect. It does not enforce access restrictions or prevent changes. |
Behavior and Constraints
Both text elements are required for the supported extension type. The requirements for headerText and hoverText are conditional on type being Lightning. Because Lightning is the only supported value, neither text element is optional for a supported extension. Both support localization.
The composer and renderer have different interface requirements. Supplying a component reference alone does not establish that the component implements the interface required for that role. Check compositionComponent against the composer interface and renderComponent against the renderer interface. See Chatter publisher integration for component implementation details.
The definition also requires description, which describes the custom Rich Publisher App, and masterLabel, which supplies the extension's label.
Do not use isProtected as a security or change-control setting. Its auto-generated value has no effect on either access restrictions or protection from modification.
Deployment and Retrieval
To retrieve an extension through Metadata API, include a types entry in package.xml with ChatterExtension as its name. Set members to a specific extension name, such as xw1, or use * to retrieve all extensions. This type supports wildcard retrieval.
When moving the definition between orgs, account separately for the component implementations referenced by compositionComponent and renderComponent. The extension definition contains the references, not the component code. Each referenced component must satisfy its corresponding interface contract.
Do not assume the source org's icon value is portable. The documented field contract calls for an existing file asset ID in the org. Verify the actual identifier and the intended destination asset before deploying across orgs, rather than treating the value as a portable developer name. A developer name is a name used to identify metadata; it is not the same as an org record ID.
Relationships
The explicit component-role references connect the extension to component bundles. The icon can have either of two alternative dependency targets: ContentAsset or Document. These alternatives do not mean that every extension requires both assets.
References
-
LightningBundle:compositionComponent,renderComponent. -
ContentAsset:icon. -
Document:icon.
A separate potential name-based association connects extensionName with LightningBundle. The documented purpose of extensionName remains naming the Rich Publisher App; it is not an additional composer or renderer setting.
Documentation Inconsistencies
The official field definition specifies an existing file asset ID for icon, but the published retrieval example uses the name-like value tiger. That example does not establish that an arbitrary asset developer name is valid or portable. Resolve the actual icon identifier and destination asset when preparing a cross-org deployment.
Common Questions
How do I retrieve all ChatterExtension definitions?
In package.xml, use ChatterExtension as the metadata type name and * as the member value. Use a specific extension name instead of * to retrieve one extension.
Which interfaces do the composer and renderer need?
The component referenced by compositionComponent must implement lightning:availableForChatterExtensionComposer. The component referenced by renderComponent must implement lightning:availableForChatterExtensionRenderer. Naming a component does not by itself satisfy either contract.
Are headerText and hoverText optional?
No, not for the supported Lightning type. Both are required for that type, and both can be localized.
Can I copy the icon value unchanged to another org?
Do not assume so. The field definition calls for an existing file asset ID, while the retrieval example shows a name-like value. Verify the identifier and destination asset instead of assuming the source value is a portable developer name.
Does isProtected prevent users from changing the extension?
No. isProtected is auto-generated and has no functional effect. It does not restrict access or protect the extension from changes.