[SalesForce] How to i figure out if a process builder contains apex class call

I have a lot of processes in my org. I have a requirement to list the processes which are calling an apex class i.e- If a process builder consists of an immediate action which is calling an apex class method. It is very difficult for me to one by one check each process and declares the result. I was wondering if we have a soql tooling API query which could help me out. Any solution either in terms of configuration, Soql or apex will be appreciated. My goal is to filter out 20 processes out of 50 which have an apex class call in them.

Best Answer

if your using any IDE, you get easily what flows are using apex classes.

  1. Get flows files in to your local by using package.xml, we used VScode IDE

    package.xml

    <?xml version="1.0" encoding="UTF-8" standalone="yes"?>
        <Package xmlns="http://soap.sforce.com/2006/04/metadata">
            <types>
                <members>*</members>
                <name>Flow</name>
            </types>
            <version>45.0</version>
        </Package>
    
  2. Once you get all files search with apexSelection keyword in your IDE local files, so it 'll give all flow files which are used Apex classes.