I created a flow that when the client health score drops 2 from the previous week, it sends a task to the CSP. This is my first time doing a loop so I want to make sure this looks good. I have some account filters so it won't do it to every account, but just customer ones with a client health score.
#Flow
1 answer
You’ll want to avoid using Create Records elements inside a loop. This article explains why.
https://salesforcebreak.com/2024/12/17/can-you-use-dml-soql-inside-loop/I think this explains pretty well how to use assignment variables inside the loop instead.
https://www.nickfrates.com/blog/looping-in-salesforce-flow-how-to-iterate-over-multiple-records