function readOnly(count){ }
Starting November 20, the site will be set to read-only. On December 4, 2023,
forum discussions will move to the Trailblazer Community.
+ Start a Discussion
Josh Harris 14Josh Harris 14 

Need help using a Flow to update 'serial numbers.'

Well, not serial numbers, per se.
  • But I have a custom object called Story
  • Each Story record has related Scenes
  • Each Scene has a scene number, which is used to keep them sorted
  • I've created a Flow to change a scene number, then renumber the scenes that follow it to keep them contiguous and in order. For instance, if I renumber Scene 4 to Scene 2, then the existing Scenes 2 and Scenes 3 each need to be incremented by 1.
  • I've got all the logic worked out, but I'm stuck on the loop to update the following scenes.
I've attached some screenshots of where I'm at now, after trying dozens of combinations of variables and elements. Any help/guidance would be amazing. Thank you.
User-added image

User-added image

User-added image