function readOnly(count){ }
Starting November 20, the site will be set to read-only. On December 4, 2023,
forum discussions will move to the Trailblazer Community.
+ Start a Discussion
sangam vvsangam vv 

Process Builder ?

how to call apex class from process builder?
Vasani ParthVasani Parth
Sangan - When no other process action can get the job done, add customized functionality to your Salesforce processes by calling an Apexmethod.To call an Apex method, add the Call Apex action to your process and select an Apex class with an invocable method. It’s that easy.If the class contains one or more invocable variables, manually enter values or reference field values from a related record. Each value must match the variable’s data type.

Here's an example to get you started , call apex class from process builder (

Please mark this as the best answer if this helps
Hi Sangam,

You have to use "Apex Code " action from process builder. As mentioned in below screen shot.

User-added image
apex sfdevapex sfdev
 use @InvocableMethod Annotation. This annotation lets us mark an Apex method as being something that can be call from somewhere other than Apex

Just follow the steps given in
Chidanand MChidanand M
use @InvocableMethod in your apex Method