I'm missing something with the Flow I'm building…but I'm fairly sure I'm close. Would appreciate any input please.
- I have a loop running to pull in my related records [working fine]
- I am storing the ID & one field called merge1 (for modification) from each record. I need to store this in the record collection variable {!ContactCollection}
- I need to assign a new value to that one field and I need to do this in the loop and do the update outside the loop to avoid SOQL limit.
- I add the Assign element but when I choose the collection variable, it does not allow me to select the field that I want to modify (as it does with a record variable).
I'm missing something here or doing something incorrectly.
Any guidance would be appreciated.
Thanks,
Best Answer
When you loop over your collection, the current record is represented by the loop variable.
So you do a get records to get all your contacts into a record collection variable.
Then you loop over the record collection variable, doing your transformation on the loop variable.
I think that will do the trick.