Custom Cron Expression to schedule for first monday

Hi @shivamkaushik319,

UiPath uses the Quartz library to generate custom cron expressions (.Net port). So an online generator like this one is good tool to know about: Free Online Cron Expression Generator and Describer - FreeFormatter.com

UiPath documentation is not that extensive yet: Using Cron Expressions (uipath.com)

We’re planning to schedule an automation to run every first Monday of every month at 6pm

Solution:

  • 0 0 18 ? * 2#1 *

0 seconds, 0 minutes, 18 hours, no value on the day, 1st of Monday any month, any year

This is how it would look in Orchestrator.

You should also beaware of some limitations to this implementation in Quartz when it comes to filtering on day of month (number) and day of week. You can read about it here: Schedule the bot on every 28th of the month - Manage / Orchestrator - UiPath Community Forum
In your case, this limitation does not apply, but still good to know about.

Hope this helps!

2 Likes