Contents
What are Invocable variables?
Use the InvocableVariable annotation to identify variables used by invocable methods in custom classes. The InvocableVariable annotation identifies a class variable used as an input or output parameter for an InvocableMethod method’s invocable action.
Why do we use @auraenabled annotation?
Marking a method as storable (cacheable) improves your component’s performance by quickly showing cached data from client-side storage without waiting for a server trip. The Apex annotation approach is better because it centralizes your caching notation for a method in the Apex class.
What are Invocable actions?
Invocable Actions are Apex methods that can be called from Flows, Processes and are exposed through the REST API. To create an Invocable Action you need to add the @InvocableMethod annotation to your method and away you go (OK, it’s not quite that simple, there are a few restrictions which are covered here).
What do you need to know about invocablevariable in apex?
The invocable method must be static and public or global, and its class must be an outer class. A list of a primitive data type or a list of lists of a primitive data type – the generic Object type is not supported. A list of an sObject type or a list of lists of an sObject type – the generic sObject type is not supported.
How to use @ invocablevariable in callout?
Your @InvocableMethod should be a static method taking a single List parameter: The invocable method must be static and public or global, and its class must be an outer class. A list of a primitive data type or a list of lists of a primitive data type – the generic Object type is not supported.
Where do I find the label for invocablevariable?
The label for the variable. The default is the variable name. This label appears in Flow Builder for the Action element that corresponds to an invocable method. This label helps admins understand how to use the variable in the flow.
What does the invocablevariable annotation do in Java?
The InvocableVariable annotation identifies a class variable used as an input or output parameter for an InvocableMethod method’s invocable action. If you create your own custom class to use as the input or output to an invocable method, you can annotate individual class member variables to make them available to the method.