Trigger on monday and first day of month, but only once if that is the same day

Hey everyone,

I have a robot that I would want to schedule to run unattended on each monday, and each first day of the month. However, when that is the same day, I want it to run only once. Does anyone have tips?

A solution could ofcourse be to check in one of the documents that the robot edits to see if it has been edited already, but I hoped that I could do this in the trigger already.

Warm regards,

Natasja

1 Like

Hey @Natasja_Wezel

Kindly use the cron time schedule for the job,

Hope that helps

Thanks
#nK

It would be:

0 0 0 1 * MON *

1 Like

Are you sure @postwick

We have only five places right ?

7 places:

Seconds, Minutes, Hours, Day Of Month, Month, Day Of Week, Year

3 Likes

Ok cool got it @postwick

My Orchestrator says that this is invalid syntax: Invalid cron expression syntax (#1600)

I solved this issue by using two triggers:
0 0 7 1W * ? *, for the first weekday of the month trigger
0 0 7 ? * MON *, for all mondays

I also built a check into my robot to see if it has already run, when both triggers fall on the same day.

This topic was automatically closed 3 days after the last reply. New replies are no longer allowed.