Salesforce Fact #163 | Multiple Sobject records deletion from flow
Suppose we have a use case where we need to delete records from multiple objects in lightning flow. So we need to use multiple delete records element to do this.
Instead, we can create a reusable invocable apex method which can take the recordIds which are to be deleted as input from the flow and delete all the SObject records in a single DML operation.
Attached are the screenshots.
Comments
Post a Comment