InvocableActionExtension defines how an invocable action's inputs appear in a user interface, especially the action property panel in Flow Builder. It configures input editors, picklist choices, visibility, grouping, display order, and a custom panel header.
This metadata provides presentation and configuration behavior around an action. It is not the action's Apex implementation. Its targets can identify the action class, an input/output parameter, a custom Apex type, or a property within that type.
Key Elements
Each entry in targets identifies a component within the action and contains an attributes collection. The standard keys below are values of an attribute's key element, not separate XML elements.
| Element | What the Element Controls |
|---|---|
targetType |
Required target scope. Allowed values are ActionDefinition for the action class, ActionParameter for a specific input/output parameter, TypeDefinition for a custom Apex type, and TypeProperty for a property within a custom type. |
targetName |
Required name of the target receiving the attributes. Examples include Example for an action definition and Example.Request.inputOne for a parameter. |
dataType |
Required interpretation of an attribute's value. Allowed values are Boolean, Date, Double, Integer, Long, and String. |
key: CpeName
|
Assigns a Lightning web component as a partial custom property editor, an editor for a primary input parameter in the Flow Builder action property panel. An example String value is c:myCustomEditor. |
key: ConfiguredBy
|
Links another input parameter to the primary parameter's custom property editor. Its value identifies the controlling parameter, such as inputOne, not the editor component. |
key: ControllingField
|
Controls an input parameter's visibility based on another input parameter's existence in the action property panel. It does not define a documented value-comparison rule. |
key: ProvidedValueList
|
Defines picklist choices for an input parameter. A String value can contain static value-label pairs or a dynamic picklist class reference such as apex://MyDynamicPicklistClass. |
key: GroupName
|
Places input parameters into collapsible sections in the action property panel. |
key: Order
|
Controls vertical display sequence, not action execution order. The documented example uses Integer as its dataType. |
key: CustomHeaderLwcName
|
Adds a Lightning web component header at the top of the action property panel. The documented pattern uses an ActionDefinition target and a String value such as c:myCustomHeader. |
Behavior and Constraints
Target scope determines where attributes apply
Every target requires both targetType and targetName. An attribute attached to an ActionDefinition target is not automatically a parameter-level configuration. Although the target structure supports custom types and their properties, the standard UI keys have the specific intended scopes described above.
A qualified parameter name such as Example.Request.inputOne identifies a different scope from the action-definition name Example. Do not treat every targetName as a simple class name.
Partial editors connect separate parameter targets
To associate two parameters with one partial custom property editor, place CpeName on the primary parameter's target and ConfiguredBy on the related parameter's target. For example, Example.Request.inputOne can have CpeName set to c:myCustomEditor, while Example.Request.inputTwo has ConfiguredBy set to inputOne. These attributes work together across the two targets.
Picklist values can be static or class-backed
A static ProvidedValueList can use a String value such as option1|Option 1, option2|Option 2. Each pair supplies a value and its label. The dynamic form uses a class reference such as apex://MyDynamicPicklistClass, introducing an Apex class dependency distinct from the action's own class.
Attributes require an explicit data type
Every attribute requires key, dataType, and value. Although value is serialized as a string, dataType declares how to interpret it.
Custom keys must start with a letter, contain letters, numbers, or single underscores, and end with __c. A valid custom key is distinct from a documented standard key; its name alone does not establish standard Flow Builder behavior.
Deployment and Retrieval
InvocableActionExtension components use the .invocableactionextension suffix and reside in the invocableactionextensions folder. The type extends Metadata and inherits its fullName field. The nested target and attribute structures are part of the extension component.
In package.xml, use InvocableActionExtension as the type name. The documented manifest example selects a member named Example. The type also supports * in the manifest for deployment and retrieval.
Dependency analysis must inspect both targetName and attribute key-value pairs. Looking only at targetName misses the Lightning web components named by CpeName and CustomHeaderLwcName, as well as an Apex class named by a dynamic ProvidedValueList. These dependencies are separate from the extension's presentation configuration.
Relationships
The extension connects action targets to UI configuration. Editor and header component dependencies are embedded in attribute values, while dynamic picklist values can embed an additional Apex class reference. These value-based dependencies need to be interpreted alongside the target name.
References
-
ApexClass:targetName; alsovaluewhenkeyisProvidedValueListand the value uses anapex://class reference. Qualified parameter target names and action-definition target names represent different targeting scopes.
Documentation Inconsistencies
One introductory XML example uses Group as an attribute key and InvocableActionExt as the root element. These conflict with the documented standard key GroupName and the InvocableActionExtension root used in the other examples. The conflicting spellings are not established as supported aliases.
Common Questions
Does InvocableActionExtension contain the action's Apex code?
No. It configures the action's UI presentation and related configuration behavior. The action's Apex implementation is separate.
Should ConfiguredBy contain the editor component name?
No. ConfiguredBy identifies the controlling parameter, such as inputOne. The primary parameter's CpeName attribute identifies the editor component, such as c:myCustomEditor.
Can an action input use a dynamic picklist?
Yes. Set ProvidedValueList to a String value such as apex://MyDynamicPicklistClass. That class reference adds a dependency distinct from the action's own class. Static choices can instead use value-label pairs.
How do I retrieve InvocableActionExtension metadata?
Use InvocableActionExtension as the type name in package.xml, with a specific member or the supported * wildcard. Components use the .invocableactionextension suffix in the invocableactionextensions folder.
Does Order control when the action runs?
No. Order controls the vertical display sequence of input parameters in the Flow Builder action property panel, not execution order.