We have a task created using Scheduler that sends email notifications to agents. Currently the task is working as expected but we would like it NOT to send any emails on Saturdays and Sundays.
Based on the HelpDesk documentation, I have tried to use the following conditions:
But this did did not work. Can you please point me to right direction? We just need to a condition that checks the day of the week and does not send email on Saturdays and Sundays.
Hello Joao! The WeekDay() function should accept a date argument to return a week day, for example WeekDay([Ticket.Created]) or WeekDay(Now()). You need to use the latter option. And the function returns just one number for the passed date so you need to add two condition expressions:
I have found a workaround to achieve this task. Instead of creating conditions for alerts not be sent via Tasks, I built a customized CRON to only run the scheduled task when I wanted. Thanks for your help!
Yes, that is the latest but the WeekDay() function is available only in the version for SharePoint Online. Thus you implemented the only possible approach with the CRON expression.