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
Murthy AlluriMurthy Alluri 

Integration of apex callouts with flow

Hello, I am looking to integrate webservice callouts with Visual Workflow, can you please suggest the approach if anyone tried.
Best Answer chosen by Murthy Alluri
Terri T JilesTerri T Jiles
Hi M123,

You should be able to do this.  

You need to create a class with an invokable method that can be called from your visual workflow https://developer.salesforce.com/docs/atlas.en-us.apexcode.meta/apexcode/apex_classes_annotation_InvocableMethod.htm?search_text=InvocableMethod

In within your invokable method, you need to call make a callout to the webservice.  Your web service callout logic should be contained in a separate class.  

Is your web service SOAP or REST?  Here is some information about invoking a web service from apex https://developer.salesforce.com/docs/atlas.en-us.apexcode.meta/apexcode/apex_integration_intro.htm

All Answers

Murthy AlluriMurthy Alluri
Can we use Invocable Apex for integration of CallOuts with Flow?
Terri T JilesTerri T Jiles
Hi M123,

You should be able to do this.  

You need to create a class with an invokable method that can be called from your visual workflow https://developer.salesforce.com/docs/atlas.en-us.apexcode.meta/apexcode/apex_classes_annotation_InvocableMethod.htm?search_text=InvocableMethod

In within your invokable method, you need to call make a callout to the webservice.  Your web service callout logic should be contained in a separate class.  

Is your web service SOAP or REST?  Here is some information about invoking a web service from apex https://developer.salesforce.com/docs/atlas.en-us.apexcode.meta/apexcode/apex_integration_intro.htm
This was selected as the best answer
Murthy AlluriMurthy Alluri
thank you Terri, it is REST with SOAP Wrapper. I already have webservice class now I need to create a class with Invocable method and call that method from Flow.