IPA - Stop a scheduled flow

 2 Replies
 1 Subscribed to this topic
 52 Subscribed to this forum
Sort:
Author
Messages
Demi
Veteran Member Send Private Message
Posts: 67
Veteran Member
We have a scheduled flow that runs every day (Mon-SUN) at 12:15. My supervisor wants to 'stop' it from running on Sun, but we are a Monday thru Friday shop.  Is there an easy way to do this? 
Carl.Seay
Veteran Member Send Private Message
Posts: 109
Veteran Member
Change the schedule from daily to Mon - Fri, then add a 2nd schedule to run it on Sat. There may be a way to schedule Mon - Sat, but I do not see it.

If you need to stop it in the flow for some reason, you should be able to use JavaScript to determine day of the week (getDay), then skip to end if it's a Sunday.
Terry P
Veteran Member Send Private Message
Posts: 234
Veteran Member
set a variable at the start:

Type Name Expression
Date today today()
Integer thisDay today.getDay()

Then do a branch:

thisDay == 7 (then skip and go to end of flow)

Schedule for all days.