Setting criteria for execute script with .getDayOfWeek()
Good Morning,
I'd like to create criteria for execute a schedule. My intention is to have an alert with differencial text based on the days missing for the event and also according to the day of week in which the event will be occured.
The first step is done, how you can see from the image. I used DATE.FIELD= zoho.currentdate.addDay(2), in this way the mail will be sent when missing two days, but I had problem with second criteria.
When I try to differentiate the days of week to have a different text I'm not able to. I'll be more clever: if the day of the week is Saturday I want TEXT1 with is in other days I want TEXT2. I'm trying with "DATE.FIELD= zoho.currentdate.addDay(2) && DATE.FIELD.getDayOfWeek() = 7" for TEXT1 and "DATE.FIELD= zoho.currentdate.addDay(2) && DATE.FIELD.getDayOfWeek() != 7" for TEXT2 but it sends me back a message with invalid criteria!!!
Any suggestion?
Best regards,
Yuri