How can I schedule event only for five days in a week except saturday and sunday ?

Hi All i am working on an application where i have to schedule event for five days in a week  i don’t want that event get scheduled on saturday  and sunday , what condtion should i give  on schedule event microflow ? thanks 
2 answers

Check the documentation here and here. You could do something like:

parseInteger(formatDateTime([%CurrentDateTime%], 'u')) < 6

So you have a daily event but in the microflow you do this check before you either execute the rest or exit immediately.


Pitty that the scheduled events have no buit-in parameter allowing us to arrange this in the ScE itself, so indeed you will need to simply schedule it daily and make the microflow check if today is a weekday or not.

Beware: the microflow uses UTC. You probably want ‘your workday’ instead of the ‘server’s workday’. Make sure you get the correct day by adding enough hours to the UTC to before determining the date.