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
Omkar JereOmkar Jere 

How to call the apex code from Flows?

Rahul KumarRahul Kumar (Salesforce Developers) 
Hi Omkar Jere, I hope it will be helpful.

Please mark it as best answer if the information is informative.

Best Regards
Rahul Kumar

 
Javwad AzeemJavwad Azeem
Hi Omkar,

you need to implement the "Process.Plugin" interface, however if you annotate your method with the @InvocableMethod annotation, you can call your Apex code via Flow and via Process Builder.

Please refer the below article.

https://help.salesforce.com/articleView?id=vpm_designer_elements_apex.htm&language=en_US&type=0

Thanks