An organization requires an autolaunched flow that iterates through a list of expired Asset records and generates a follow-up Task for each corresponding account manager. To ensure the flow successfully processes high volumes of records without exceeding transaction governor limits, which two design practices should the administrator implement when configuring flow resources and elements?
- Use an Assignment element inside the loop to add each configured Task record variable to a Task collection variable.Cevap
- BPlace a Create Records element inside the loop path to insert each Task record immediately during every iteration.
- Place a single Create Records element after the loop completes to insert the entire Task collection variable in one operation.Cevap
- DAdd an Update Records element inside the loop to set the status of each processed Asset record individually.
Cevap
The administrator should use an Assignment element inside the loop to add individual record variables to a collection variable, and then place a single Create Records element after the loop to insert the entire collection at once.
Best practices for Flow data manipulation require bulkification: within the loop, an Assignment element should be used to stage and add records to a collection variable in memory. Once the loop has finished iterating over all items, a single data manipulation element (such as Create Records or Update Records) is executed on the entire collection variable, consuming only one DML statement.
Adım Adım Çözüm
Anahtar Kavram
Flow bulkification and collection variable management during loop iterations
Tahmini Süre:1m 15s