An administrator needs to create an automated process whenever an Account record is updated with a Status of 'High Priority'. The process must find all related open Opportunities and update their Next Step field to 'Executive Review'. Which Flow Builder configuration meets these requirements while adhering to Salesforce governor limit best practices?
- Use a Get Records element outside the loop to retrieve the open Opportunities, iterate through them with a Loop element, update the fields using an Assignment element to populate a record collection variable, and execute a single Update Records element after the loop.Answer
- BIterate through the related Opportunity records with a Loop element and place an Update Records element inside the loop to update each record individually.
- CCreate a Roll-Up Summary field on the Account object that automatically pushes the updated text value to child Opportunity records.
- DConfigure the Opportunity Record Type picklist assignment to automatically update field values on child records when the parent Account changes.
Answer
The correct configuration uses a Get Records element to query related records, an Assignment element within a Loop to populate a new collection variable, and a single Update Records element outside the loop.
To process multiple child records efficiently and adhere to Salesforce governor limits, flows must be bulkified. Using a single Get Records element prior to looping and a single Update Records element after processing the collection ensures that only one SOQL query and one DML transaction are used regardless of the number of records.
Step-by-Step Solution
Key Concept
Bulkification in Flow Builder using collections and loops
Estimated Time:1m 30s