Skip to main content

Hi there,

 

I'm facing some road blocks around trying to set up my record triggered flow for asynchronous processing. Wanted to see if any one had insight:

 

  • I have a flow that triggers on create and update. Since asynchronous process requires ISCHANGED condition, I used a formula with : OR ( ISNEW(), ISCHANGED(...) ) . However the flow did not allow activation, is this a bug?
  • I then tried using the criteria 'Any condition is met (OR)' . For the first condition I selected recordid > is null > is false. For the second condition I selected status > equals > new. I checked the 'Only when a record is updated to meet the condition requirements' toggle. 
    • The flow activated this time
    • However it only worked on create but not on update. I changed the status from 'On Hold' to 'New' and did not see a trigger. Is this a bug?
  • Related question: If an asynchronous path fails, does it keep re-trying the operation? I seem to keep getting an error email for an asynchronous flow over and over again however the systemmodstamp is the same for them
  • Related question: Are scheduled paths also asynchronous?

My goal here is to start a new transaction boundary when the flow is triggered on create or update

2 risposte
  1. 16 set 2023, 00:23

    The start condition for updated records can be tricky. I’ve used also a state flag that is defaulted on create and set once the flow runs, to ensure retry logic is possible.

    Second question, if an async flow fails, via record locking, whatever, and the element does not have a fault handler, it will retry about 4 times at increasing intervals of 15, 30, 60, 120 minute retry intervals.

    Yes, scheduled paths are in a new thread.

    If you need, also evaluate the use of platform events for breaking the transaction into a new thread.