I am wanting to bypass weekends for 1st and 2nd Reminders for approvals. I have the 1st reminder working, but I'm not sure how to set up the 2nd reminder.
I've added a process variable in the Start Node for OriginalTimeOutDays. The 1st reminder is set to <!NewTimeOutDays> and I have this in the assign node:
function NewTimeOut(Counter) {
var CalculatedDays = 0;
var day = today().getDay();
while (Counter > 0) {
CalculatedDays++;
day = (day % 7) + 1;
if (day != 6 && day != 7) {
Counter--;
}
}
return CalculatedDays;
};
NewTimeOutDays = NewTimeOut(OriginalTimeOutDays);
How can I do this same thing for a 2nd reminder?