Skip to main content

A Flow calls an Invocable Apex method, and Apex updates the same record that triggered the Flow. 

Will the Flow run again?

  

 

#Flows

3 个回答
  1. 9月2日 12:06

    No, the Flow will not automatically run again just because the Invocable Apex method updates the same record. 

    If a Record-Triggered Flow calls an Invocable Apex method, and that Apex updates the same record, Salesforce does not recursively trigger the same Flow simply because of that Apex update. 

    However, the Apex update can cause other automation on that record to execute, depending on the automation configuration. 

    Example: 

    Record-Triggered Flow → Invocable Apex → Update same Account 

    The Flow doesn't automatically loop like: 

    Flow → Apex → Flow → Apex → ... 

    So the answer is: No, not automatically. 

0/9000