Attaching a screenshot of the Debug details from flow test. The top Assignment shows it updating the lookup field (to Account) in the loop to the correct value. Then, the Update Records for the same record collection variable from the loop shows that the account ID was not actually updated and remains the old ID. What could be causing this? I've tried a few different things and nothing seems to make this work properly
#Flow #Sales Cloud #Automation.
#Flow
Okay, so I have figured it out. You need to create a new collection and push the updated record from the loop to the new collection and then insert the new collection in the db.
It's a bit confusing but the updated loop element seems to be detached from the original collection thus the reason why you need a new collection!