Reports in Salesforce
Reports in Salesforce
Methods in
Salesforce
Apex
Unlock the Power of Customizable Process
Automation
Himanshu Singh
@mrsingh29
What are
Invocable
Methods?
Custom Apex methods that allow you to invoke
them from Process Builder or Flow. They allow
you to extend Salesforce’s process automation
capabilities by calling Apex code
Himanshu Singh
@mrsingh29
How to Define
Invocable
Methods
Use the @InvocableMethod annotation with a
public static method.
Himanshu Singh
@mrsingh29
Input
Parameters
They can only take a list of a primitive data type
or a list of lists of a primitive data type as
arguments.Pass data from Process Builder or Flow
into the Apex method as parameters. They can
have at most one input parameter.
Himanshu Singh
@mrsingh29
Output
Parameters
They return a list of a primitive data type or a list
of lists of a primitive data type.Return data back
to Process Builder or Flow using
@InvocableVariable.
Himanshu Singh
@mrsingh29
In Summary
Invocable Methods in Salesforce Apex are custom
methods that can be invoked from Process
Builder or Flow, enabling seamless integration of
custom logic.
Himanshu Singh
@mrsingh29
Ready to Level
Up Your
Automation?
Share your thoughts about Invocable Methods in
the comments below! If I missed anything feel
free to mention in comment section. Like and
reshare the post.
Himanshu Singh
@mrsingh29