An administrator is configuring a flow to modify multiple Asset records while following Salesforce bulkification best practices. In what sequence should the data manipulation steps be executed from first to last?
- 1Set updated field values on an individual Record Variable inside the loop.
- 2Add the individual Record Variable to a Record Collection Variable inside the loop.
- 3Execute an Update Records element referencing the Record Collection Variable outside the loop.
Cevap
The correct sequence of steps is: 1) Set updated field values on an individual Record Variable inside the loop, 2) Add the individual Record Variable to a Record Collection Variable inside the loop, and 3) Execute an Update Records element referencing the Record Collection Variable outside the loop.
The correct sequence begins by modifying individual field values on a single record variable using an Assignment element inside the loop. Next, a secondary Assignment element inside the loop appends that single record variable to a record collection variable. Finally, once the loop finishes executing across all items, an Update Records element is invoked outside the loop using the collection variable to update all records in a single bulkified transaction.
Adım Adım Çözüm
Anahtar Kavram
Flow Bulkification and Collection Management
Tahmini Süre:45s