Hi,
I have created a Flow and I have a batch Class. I want to call that batch class and Execute it whenever the flow meets the Condition. I am suppose to pass the Record ID as a Input Param from the Flow Apex Action and Pass that Id to the Batch Class and Execute it. Can Anyone help me to find the Solution. #Salesforce #Automation #Flow #Salesforce Developer
2 comments
Hi Nikita,
You can use @InvocableMethod (Label ='Name of your flow') in the batch class and access the batch class in your flow using the action element and configure your batch class name in it and pass the record id to it.
Hope this helps!