Regarding Scheduler activity
Suppose if i have schedules a workflow run on 5th of every month , but in some months it 5th comes on Sat/Sun , can we make that run happen in next day i.e. Monday
Suppose if i have schedules a workflow run on 5th of every month , but in some months it 5th comes on Sat/Sun , can we make that run happen in next day i.e. Monday
Hi @srinivas1254 ,
You can try the below approach,

Scheduler:
Scheduler > Advance tab > Initialization script:
vars.day = formatDate(new Date(), "%2A");

Test Activity:
Create 2 conditions,

//Condition1: (Label: Saturday) vars.day == 'Sat' //Condition2: (Label: Sunday) vars.day == 'Sun' //Default connection Label as 'Weekdays'
Wait Activity:
Define duration of 2d for Saturday and 1d for Sunday

So If 5th of the Month is Saturday, It will wait for 2 days and trigger the remaining flow on Monday, and same for Sunday (get triggered after 24hrs).
And if 5th of the month falls on rest of the weekdays (Mon-Fri), Workflow will trigger on the same day.
Enter your E-mail address. We'll send you an e-mail with instructions to reset your password.