An organization needs to update the SLA Target Date and Priority across all open Work Order Items whenever a parent Medical Asset is marked as Critical. To adhere to Salesforce Flow best practices and prevent governor limit exceptions, the administrator must configure a sequential data manipulation pattern.
In what order should the administrator arrange these Flow elements and data operations from start to finish?
- 1Query all open Work Order Item records related to the Medical Asset and store them in a record collection variable.
- 2Iterate through each Work Order Item in the retrieved record collection variable using a Loop element.
- 3Use an Assignment element inside the loop to set the new SLA Target Date and Priority values on the current loop record variable.
- 4Use an Assignment element inside the loop to add the modified current loop record variable to an update record collection variable.
- 5Execute a single Update Records element after the loop completes using the update record collection variable.
Cevap
1. Query all open Work Order Item records into a collection variable; 2. Iterate through records using a Loop element; 3. Assign new field values to the current loop record variable; 4. Add the modified record variable to an update collection variable; 5. Execute an Update Records element after the loop path completes.
The standard and optimal pattern for manipulating multiple child records in Flow Builder consists of: (1) retrieving records into a collection, (2) iterating over the collection with a Loop element, (3) updating fields on the current loop item variable via Assignment, (4) adding that modified record item variable to an update collection variable via Assignment, and (5) running a single Update Records DML element on the 'After Last Item' exit path outside the loop.
Adım Adım Çözüm
Anahtar Kavram
Bulkified Flow Data Manipulation Pattern
Tahmini Süre:1m 15s