0% found this document useful (0 votes)
6 views

Reports in Salesforce

Invocable Methods in Salesforce Apex are custom methods that can be called from Process Builder or Flow, enhancing process automation capabilities. They are defined using the @InvocableMethod annotation and can accept a list of primitive data types as input parameters, returning similar data types as output. This allows for seamless integration of custom logic within Salesforce automation processes.

Uploaded by

rachita
Copyright
© © All Rights Reserved
We take content rights seriously. If you suspect this is your content, claim it here.
Available Formats
Download as PDF, TXT or read online on Scribd
0% found this document useful (0 votes)
6 views

Reports in Salesforce

Invocable Methods in Salesforce Apex are custom methods that can be called from Process Builder or Flow, enhancing process automation capabilities. They are defined using the @InvocableMethod annotation and can accept a list of primitive data types as input parameters, returning similar data types as output. This allows for seamless integration of custom logic within Salesforce automation processes.

Uploaded by

rachita
Copyright
© © All Rights Reserved
We take content rights seriously. If you suspect this is your content, claim it here.
Available Formats
Download as PDF, TXT or read online on Scribd
You are on page 1/ 7

Invocable

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

You might also like