Scheduler - Email reminder

Hello,

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:

if "WeekDay()" not contains "5, 6"

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.

Thank you,

@Evgeniy , is this something you can help me with?

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:

Hi @Evgeniy I am able to enter WeekDay(Now()) function and save the changes successfully as you suggested:

However, when that task runs it does not work and it shows the following error under Logs:

I have also tried to use the function WeekDay(Now()) with no success.

Any other ideas on how this can be solved? Thank you for your help!

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!

Thank you for the update, Joao! Anyway, I will ask developers to check why the task failed.

What is the version of your HelpDesk site? Is it for SharePoint Online? If so, please share your domain in a private message.

On premise SharePoint 2019. Help Desk Current version: 1.3.13. Is it the latest one available for on-prem SP?

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.