Wanted to Schedule trigger using Advanced

Hi team,
I want to schedule my process to run 8PM the second day of ever month. I wanted to understand the breakdown of the expression under ‘Cron Expression’ for example → 0 0 20 2 1/1 ?* what does each of these values stand for? Just wanted to understand.

Please see this screenshot as it might help.


Thanks a lot!

You can use this tool to generate expressions or get a description of expressions: Free Online Cron Expression Generator and Describer - FreeFormatter.com

Hi @Sisay_Dinku

A Cron Expression is a string that defines a schedule for running a job or a process at specific intervals. Each field in a Cron Expression represents a unit of time, and they are separated by spaces. The fields are in the following order:

<second> <minute> <hour> <day of month> <month> <day of week> <year>

In your case, to schedule your UiPath process to run at 8 PM on the second day of every month, the Cron Expression would be:

0 0 20 2 1/1 ? *

Let’s break down what each field in the Cron Expression means:

  • 0 - This is the seconds field, and it is set to 0 to specify that the job should run at the beginning of the minute.
  • 0 - This is the minutes field, and it is set to 0 to specify that the job should run at the beginning of the hour.
  • 20 - This is the hours field, and it is set to 20 to specify that the job should run at 8 PM (in 24-hour format).
  • 2 - This is the day of the month field, and it is set to 2 to specify that the job should run on the second day of every month.
  • 1/1 - This is the month field, and it is set to 1/1 to specify that the job should run every month.
  • ? - This is the day of the week field, and it is set to ? to specify that the job should run regardless of the day of the week.
  • * - This is the year field, and it is set to * to specify that the job should run every year.

So the Cron Expression 0 0 20 2 1/1 ? * means that the UiPath process will run at 8 PM on the 2nd day of every month, regardless of the day of the week or the year.

Best regards
Roman

Hi @Roman-Routinuum ,

That’s fantastic. It’s very clear and thank you so much. I appreciate it.

1 Like

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