PDI · Question #68
As part of a data cleanup strategy, AW Computing wants to proactively delete associated opportunity records when the related Account is deleted. Which automation tool should be used to meet this busin
The correct answer is C. Record-Triggered Flow. To proactively delete associated opportunity records when an Account is deleted, a Record-Triggered Flow should be used, configured to run after the Account record is deleted.
Question
As part of a data cleanup strategy, AW Computing wants to proactively delete associated opportunity records when the related Account is deleted. Which automation tool should be used to meet this business requirement?
Options
- AWorkflow Rules
- BScheduled job
- CRecord-Triggered Flow
- DProcess Builder
How the community answered
(25 responses)- A4% (1)
- B8% (2)
- C72% (18)
- D16% (4)
Why each option
To proactively delete associated opportunity records when an Account is deleted, a Record-Triggered Flow should be used, configured to run after the Account record is deleted.
Workflow Rules cannot be triggered by record deletions and are limited in their ability to perform complex actions like deleting related records.
A Scheduled Job runs at a predetermined time or interval and cannot be triggered proactively by a specific record deletion event.
A Record-Triggered Flow configured to run 'After Delete' on the Account object can directly query and delete all associated Opportunity records. This automation tool is ideal for performing actions based on record deletion events, a capability not offered by Process Builder or Workflow Rules.
Process Builder cannot be triggered by record deletions, nor can it directly delete related records as an action.
Concept tested: Salesforce automation tools for record deletion events
Source: https://help.salesforce.com/s/articleView?id=sf.flow_ref_elements_delete.htm&type=5
Topics
Community Discussion
No community discussion yet for this question.