[SalesForce] Flow: Collection variable – unable to assign field

I'm missing something with the Flow I'm building…but I'm fairly sure I'm close. Would appreciate any input please.

  1. I have a loop running to pull in my related records [working fine]
  2. 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}
  3. 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.
  4. 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,

SteveRecord Collection Variable fields

Assignment element: choosing the Collection variable...but can't select the field I want to update
My Flow so far

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.