Skip to main content

In a flow, I have to set a field for a set of records all to the same value. Seems like the std practice is to use a loop element, build up a record collection with new values inside the loop, then use an UpdateRecord element outside the loop to update the actual records.

 

That works, but it's a lot of fuss. It seems like there should be an element out there somewhere that takes a record collection, lets you choose a field and specify a value, and updates every record in the collection - the "flow version" of good ole' Mass Update from SF Labs.

Anyone seen such an element, or is there a tricky way to use the Update Records element I am not seeing?

8 respostas
  1. 15 de ago. de 2021, 17:59

    Even in Apex we have to do the equivalent of loop - assign - add to collection - update. While the UnofficialSF component presents this mechanism as a single action in the UI, behind the curtain it still has to do the same series of low-level actions.

0/9000