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.
if your using any IDE, you get easily what flows are using apex classes.
Get flows files in to your local by using package.xml, we used VScode IDE
<?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>
Once you get all files search with
apexSelectionkeyword in your IDE local files, so it 'll give all flow files which are used Apex classes.