A system administrator needs to automate a maintenance update on all active Asset Warranty records related to a Product Model whenever the manufacturer terms are revised. The Flow must retrieve all relevant Asset Warranty records, modify their coverage status and expiration date, and persist the updates to the database without encountering DML governor limits. Which two design practices should the administrator implement to accomplish this? (Choose two.)
- Add an Assignment element inside the Loop to assign the updated field values to the current item and add that item to a new Record Collection variable.Cevap
- BPlace an Update Records element directly inside the Loop element to immediately save each record modification as it iterates.
- Place a single Update Records element along the flow path after the Loop completes to commit the entire Record Collection variable at once.Cevap
- DConfigure a Get Records element inside the Loop to refetch each individual Asset Warranty before updating its field values.
Cevap
Use an Assignment element within the loop to populate a secondary record collection variable, then execute a single Update Records element after loop execution finishes.
Bulkifying Flow operations requires handling record updates in memory during iteration and batching database commits. Updating field values on the loop item and adding it to an output collection variable using an Assignment element inside the loop stages all changes in memory. Executing a single Update Records element after the loop completes the transaction using a single DML statement, avoiding governor limit exceptions.
Adım Adım Çözüm
Anahtar Kavram
Bulkified Flow Data Manipulation and Collection Handling