CustomApplicationComponent defines the presentation of a Visualforce-based custom console component in Salesforce Classic. Custom console components extend console apps and are assigned to a CustomApplication marked as a Salesforce console.
This metadata configures the component's visibility, launch button, window dimensions, and resizing behavior. It is not the Visualforce implementation itself: the required visualforcePage element names a separate ApexPage that supplies the component's content.
Key Elements
| Element | What the Element Controls |
|---|---|
visualforcePage |
Required. The name of the Visualforce page that implements the component. References an ApexPage by name. |
isHidden |
Required boolean. true hides the component from users; false leaves it visible. |
isHeightFixed |
Required boolean. true prevents users from changing the component's height; false allows height resizing. |
isWidthFixed |
Required boolean. true prevents users from changing the component's width; false allows width resizing. |
height |
The component window's height, in pixels. Read together with isHeightFixed. |
width |
The component window's width, in pixels. Read together with isWidthFixed. |
buttonText |
The label on the button used to launch the component. |
buttonWidth |
The launch button's width, in pixels. This does not set the component window's width. |
Behavior and Constraints
Visibility is an explicit setting. When a configured component does not appear, check isHidden. A value of true hides it even though the component configuration exists.
Height and width resizing are independent. For example, isHeightFixed=true with isWidthFixed=false prevents users from changing the height but allows them to change the width. Specifying height or width alone does not mean that dimension is locked.
The launch button and the component window have separate sizing settings. Change buttonWidth to adjust the button; change width to adjust the window. buttonText controls the launch label, not the Visualforce page's content.
The app connection matters as well as the page reference: CustomApplication.components connects a console app to this component configuration, which in turn points to its Visualforce page.
Deployment and Retrieval
In a Metadata API file-based package, custom application components are stored in the customApplicationComponents folder with the suffix .customApplicationComponent.
Use CustomApplicationComponent as the type name in package.xml. The type supports the * wildcard for selecting members.
A component definition requires visualforcePage, isHidden, isHeightFixed, and isWidthFixed. Keep the component configuration separate from the referenced ApexPage when planning deployment scope: changing this metadata changes console presentation, while changing the page can change the content users see.
Before replacing or removing a component, inspect actual CustomApplication.components and ServiceChannel.interactionComponent references. Checking only the Visualforce page relationship misses the apps and service channels that can reference the component.
Relationships
The main connection runs from the console application to the component configuration and then to the Visualforce page. A service channel can also reference the component. These relationships identify possible dependencies; inspect the actual metadata to determine which assets use a particular component.
References
-
ApexPage:visualforcePage, by page name.
Referenced By
-
CustomApplication:components. -
ServiceChannel:interactionComponent.
Common Questions
Why is my custom console component hidden?
Check isHidden. A value of true hides the component from users. Also inspect the console app's CustomApplication.components assignment.
Why can users resize a component with a configured width and height?
The dimensions do not lock resizing. Set isHeightFixed and isWidthFixed to true to prevent resizing on the corresponding axis.
Does CustomApplicationComponent contain the Visualforce page?
No. It contains presentation settings and a required visualforcePage reference. The implementation is a separate ApexPage.
How do I retrieve all CustomApplicationComponent members?
Use the CustomApplicationComponent type with the * wildcard in package.xml. In the Metadata API file-based format, the files use the .customApplicationComponent suffix in customApplicationComponents.