Salesforce Fact #192 | Call batch apex from flow
Generally apex batch jobs are scheduled to run at particular time intervals. But suppose we have a use case where we need to run the batch job on adhoc basis. We can call the batch apex from a screen flow in that case and the screen flow can be invoked from a button. So, the batch job can be executed on demand.
Attached are the screenshots.
Comments
Post a Comment