0

CONTEXT: I have followings in my org, One of the object have 2 separate after save flows, 1st after save flow update the Status field value to Active and 2nd after save flow have some logic if the Status is Active as Entry Criteria.

I know for the same object field updation we don't need to use after save flow, but one of my use case I have to do field updation in the after save flow.

PROBLEM: In Salesforce Order of execution if we do DML in the same object in after save flow, it will not execute after save flows for the same object. But it is executing(2nd flow execute) for the above use case. I just want to know the reason for this? or else my understanding is wrong?

5
  • all the after-save flows execute in the Flow trigger order defined by the admin. see also this Q&A. The DML done by the first flow updates the database so when the second flow executes, the field is already updated and available for the entry condition. Commented Nov 4 at 1:14
  • @cropredy - thanks for the input. I added the order in the Flow Trigger Explorer, 1st flows run first, second flow runs second. when try the same in my dev org second flow is not execute. Something wired for me. Commented Nov 4 at 6:39
  • so it works in prod and not dev? Commented Nov 4 at 18:24
  • In client org 2nd flow is executing, but when I try do the POC in my dev org which is not executing! I confused... Commented Nov 5 at 11:23
  • then something is different between orgs -- examine debug logs for each org; verify flow is at same version Commented Nov 5 at 17:37

1 Answer 1

0

Even if you perform a DML operation on the same object within an after-save flow, it will not prevent other after-save flows from executing. However, Flow does include built-in recursion prevention, which ensures that the same record-triggered flow does not run more than once within the same transaction.

1
  • Thanks for the input. When I try the same in my dev org. Second flow is execute. Commented Nov 4 at 6:40

You must log in to answer this question.

Start asking to get answers

Find the answer to your question by asking.

Ask question

Explore related questions

See similar questions with these tags.