How to schedule bot monthly specific 6 days excluding holidays and weekends

Need to run the bot where bot only runs with checking below conditions
1.Run on 6 specific dates every month (e.g., 1st, 5th, 10th, 15th, 20th, 25th).
2.If the date falls on a weekend (Saturday/Sunday) → run one day before.
3.If the date is a holiday (Dates present in Excel list) → run one day before.

Thank you !!

@Arjun1

You might need to schedule bot daily..check the holiday calander and todays date and then proceed with run or not to run as your logic

There is no cron expression for your case

Cheers

is it possible to avoid run bot daily base ?

@Arjun1 - You can use the cron expression " 0 0 0 1,5,10,15,20,25 * ? * " to run exactly on the 6 specific dates. You add add checks within the code to see if the current run is happening on a weekend, the you can send a stop signal to not run the bot.

Or you can create a dedicated bot that will create these triggers(through Orchestrator’s APIs as there is no dedicated UiPath Activity) for you based on the checks to provided, that runs at the last day of the previous month (30 or 31st).

There is possibility that after weekends immediately on Monday we can get Holiday, in this case bot need to run on Friday. Also if 2 days holiday are listed like on Monday & Tuesday then we need to run bot 4 Days before to schedule. In this case cron will not work correct?

@Arjun1 - Unfortunately no. The best bet in this case is to run the bots manually on these special days.