A Salesforce Administrator needs to build an autolaunched flow that updates a field on all Contact records related to an Account while adhering to Salesforce bulkification best practices. In what order should the administrator configure the Flow Builder elements to process these records without exceeding governor limits?
- 1Get Records element to query all related Contact records into a record collection variable
- 2Loop element to iterate over each Contact record in the retrieved collection variable
- 3Assignment element inside the loop to update the field value on the current loop record item
- 4Assignment element inside the loop to add the updated current loop record item to a new output record collection variable
- 5Update Records element outside the loop to update the new output record collection variable in a single operation
Cevap
The correct sequence is: Get Records element to query related records -> Loop element to iterate through the collection -> Assignment element to update field values on the current item -> Assignment element to add the current item to a new collection -> Update Records element outside the loop to execute the bulk update.
The correct order demonstrates proper bulkification in Flow Builder. The flow queries records once using a Get Records element, iterates through them in a Loop element, uses Assignment elements to update field values and collect modified records into a new collection, and finally performs a single Update Records element outside the loop to commit all changes efficiently.
Adım Adım Çözüm
Anahtar Kavram
Flow Bulkification Best Practices
Tahmini Süre:1m 0s