I have a flow that only fires once per case record when an email-to-case comes in. It finds the email alias the case came through and assigned some values to the case record.
I'm assessing a flow that has the DML statement inside a loop with an End (see example first image). It makes sense since the DML statement can only and should only be executed once. However, unsure if it follows best practice or if necessary to bulkify.
I have a mock up of what removing the DML statement out the loop might look like (see example second image), but is it correct or necessary? And I have no idea how this could be bulkified (or even if it needs to be). In this post it wasn't clear if bulkification was needed: DML in the Loop followed by break. Still getting to grips with all this. Thanks
Example First Image: (DML inside loop followed by end/break)
Example Second Image: (DML outside of loop trial)