Inputs: 'Action Test' 'Given A List of Account Ids, Return A List of Account Names.' 'Account'
Inputs: 'Action Test' 'Given A List of Account Ids, Return A List of Account Names.' 'Account'
Note: The resource is the name of the Apex class, not the Apex method. In this example, the resource is /ActionTest,
not /getAccountNames.
Notes
• Describe and invoke for an Apex action respect the profile access for the Apex class. If you don’t have access, an error is issued.
• If you add an Apex action to a flow, and then remove the @InvocableMethod annotation from the Apex class, you get a
runtime error in the flow.
• If an Apex action is used in a flow, packageable components that reference these elements aren’t automatically included in the
package. For example, if you use an email alert, you must manually add the email template that is used by that email alert. To
deploy the package successfully, manually add those referenced components to the package.
• An Apex invocable action can be declared public or global in a managed package. However, that action doesn’t appear
in Flow Builder’s list of available Apex actions. These invocable actions can still be referred to by flows within the same managed
package. Global Apex invocable actions in a managed package can be used in flows outside the managed package, anywhere
in the organization, and appear in Flow Builder’s list of available Apex actions.
Inputs
Supply input values that correspond to the Apex action.
• A POST request body must use the JSON format specified in Invoking Actions.
• Apex methods annotated with @InvocableMethod must take a List as an input and return a List or Null. For more information,
see @InvocableMethod Annotation in the Apex Developer Guide.
• Only the following primitive types are supported as inputs in a POST request body:
– Blob
– Boolean
– Date
– Datetime
– Decimal
– Double
– ID
– Integer
– Long