Salesforce Fact #467 | Delete related contacts/opportunities using screen flow

Many times we need to delete all the related records for a parent record. For example, we would like to delete all the related contacts or related opportunities for an account. Why not have a screen flow to get this done efficiently?

We can create a screen flow which will ask for whether related opportunities or related contacts need to be deleted and based on the choice selected can perform the deletion.

Attached are the screenshots.

Note: The flow can be improved by adding the option to delete both the related contacts and opportunities and also by adding error handling.














Comments

Popular posts from this blog

Salesforce Fact #192 | Call batch apex from flow

Salesforce Fact #457 | Get current user role name in flow