You are here:
Apex Action Element
Call an Apex class. An Apex class functions as an Apex action only if one of its
methods includes the @InvocableMethod annotation.
Required Editions
| View supported editions. |
Add an Action element to the flow. Filter the list of actions by type rather than category.
If your canvas is in auto-layout, select Apex Action. If your canvas is in free-form layout, select Apex.
Select the action that you want to configure. For details about creating Apex actions, see
“InvocableMethod Annotation” in the Apex Developer Guide.
Set Input Values
When you set the inputs for the Apex action, use values from earlier in the flow.
Apex actions don’t support lookup fields in record variables as input values.
Store Output Values
To reference output values that are stored automatically, specify the API name of the Action element.To store the action’s output values manually, select Manually assign variables (advanced). The values are assigned when the code is executed.
Usage
To invoke Apex from a flow, the running user requires the corresponding Apex class assignment in their profile or permission set.
If the invoked method creates, updates, or deletes a record, that action runs when the interview's transaction completes. Transactions complete either when the interview finishes or when it runs a Screen, Local Action, or Wait element.
Flow Builder doesn’t show descriptions for input and output values. For details about each parameter, ask the Apex developer for more information.
Flow Builder shows Apex actions from managed packages only if the package owner defined the associated method as globally available.
Starting in API version 66.0, custom Apex classes used as action parameters require an accessible no-argument constructor. Flow Builder shows an error if the class lacks this constructor. If you receive this error, contact the developer who created the Apex action to update the class. For more information, see Spring ’26 (API Version 66.0).

