An organization tracks custom Project Milestone records linked to a parent Project object through a Lookup relationship. When a Project Milestone status changes to 'Completed', an administrator must update the parent Project's aggregated completion percentage and update a custom status field on all related open Project Task records. The automation must handle bulk data uploads of up to 200 Project Milestones simultaneously without exceeding transaction limits. Which Flow Builder design strategy correctly processes these record updates while adhering to Salesforce governor limits?
- ACreate a Roll-Up Summary field on the parent Project object to calculate the total completed milestone weighting automatically, eliminating the need to query or loop over child milestone records in Flow Builder.
- Use a Get Records element outside the loop to retrieve all related milestones, iterate through the collection with a Loop element using an Assignment element to sum the completion weighting into a variable, and execute a single Update Records element after loop execution finishes.Answer
- CIterate through each related Project Task inside a Loop element and place an Update Records element within the loop body to modify each task individually as it is processed.
- DUse a Loop element to update each Project Task's record type assignment directly by setting a custom picklist field value without verifying if the picklist value is assigned to that target Record Type.
Answer
The administrator should perform data calculations in memory using a Loop and Assignment element, placing the Update Records element after the loop completes to execute a single bulkified DML operation.
Bulkifying a Flow requires isolating database interactions (Get Records, Update Records, Create Records, Delete Records) outside of Loop elements. By collecting data into memory, using Assignment elements within the loop to calculate totals or build record collections, and invoking a single Update Records element after the loop completes, the flow handles bulk operations efficiently within governor limits.
Step-by-Step Solution
Key Concept
Flow Bulkification and Governor Limits