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
Subhash RSubhash R 

Is there any way to get the ID of a Process Builder to apex class?

Hi,

I want to get the ID's of all the Process Builder (that I created) into an Apex Class. As i seen in Workbench, There is a particular ID for the Process Builders with the Particular Name appending the Version Number in last of that Name with ID too. Now I want to retrieve all the Process Builder IDs in an Apex Class.

Is there any way to do this by means of Metadata API (or) Is there any API directly to retrieve them?

Thanks in advance...
 
Pankaj_GanwaniPankaj_Ganwani
Hi,

Did you try using SOQL in apex to retrieve the process builder Ids?
Subhash RSubhash R

Hi,

Yes, I tried using the Process Builder Name and Flows Name also. But it is throwing error that the Object Name is not Present.