Flow designer mail notification triggers after wait for duration

sukran
Mega Sage
  • If Inc changes to resolved state then wait for 2 days after that if still in resolved state , send a mail notification to caller for reminder close the incident - this works fine

 

  The challenge here is , if Inc changes to resolved then one flow execution starts , and wait for 2 days ..in between the user changes state to 'New' and again move to resolved then another flow execution happened for notification.. it seems dual notification for resolution

How to restrict to execute only one notification to sent ?

 

5 REPLIES 5

Danish Bhairag2
Tera Sage
Tera Sage

Hi @sukran ,

 

U can add one check in ur flow after wait for condition just check if the current state is New. If yes then end the flow. This way it will make sure only one notification will be sent to the user & other flow is ended.

 

Thanks,

Danish

 

@Danish Bhairag2 

 

its wait for duration condition of 2 days. In between these 2 days if user changes to resolved to new and again resolved, its retrigger two execution. then as you said If condition checks state is New , then ignore ( its not gonna help here)

@Ankur Bawiskar any help ?

 

OlaN
Giga Sage
Giga Sage

Hi,

This could perhaps be solved using the trigger condition to only run if it's currently not running.

The downside is that it will then always be the first iteration that triggers the reminder, not the last one, which might not be what you intended.

Let me know if this works, or if you want to dive into other options.

 

flow-trigger-when-not-running.png