+ Start a Discussion
Flight PlanFlight Plan 

Process builder supports API calls ?

Does process builder workflow action Apex support API call out ?
I want to move my current implemetation to use process builder so that will get result at runtime (no queuing).
Use case :
I have apex trigger which communicate with external system (using Future method).
Does Process Builder commit record when it met the criteria ?
Actually I am planing to call the external system and get the result real time. If I used future method its taking its own good time.

Any help on this would be appricaited.
Thanks
-FP
 
SonamSonam (Salesforce Developers) 
Process Builder is triggered once the record is committed in the database to perform the steps mentioned in the Process, it does not commit data as you have mentioned in the issue description.

With process builder you can call an apex class which has an invokable function:
http://bobbuzzard.blogspot.sg/2015/02/lightning-process-builder-and-invocable.html
Flight PlanFlight Plan
Hi Sonam,

Through Process Builder , I am calling apex class having API call to external system and its giving giving "You have uncommitted work pending. Please commit or rollback before calling out".

I double check the code and there was no DML before the Callout.
Just want to confirm whether API callout is supported through Process Builder

Thanks 
-FP

Razia Khan 7Razia Khan 7
@Flight Plan: Even I am facing the same issue, how did you resolve it?