Hi everyone, I need to schedule a process to run ONLY when is a local holiday (with a specific calendar). Is it possible?
Hi @ajgb
Yes it is…Create a separate calendar with only marking the holidays as working days and schedule the bot to run daily with that calendar …so as per the calendar it runs only when it is holiday for organization because you gave the holidays as working days
cheers
Should I mark every day of the year one to one leave as working day only the 3 or 4 holidays of the year? It not seems to be the best solution for me… Should must be another solution…
Hi @ajgb
another way is to read the excel with holidays from your process and run only on those days
In Scheduling you directly dont get other options to run on specific days that too if they are varying month on month
cheers
I do not want the process to run everyday except some days. What I want is that the process never run, except some days that should be run it.
There is no direct method to do it. Instead you can add all the dates that you are not interested to run as a csv in the non-working day calendar. Then it will work on days that is not mentioned in the file.
Thanks
Hi @ajgb
To schedule a process to run only on holidays in UiPath Orchestrator, you can use the Schedule
and Trigger
options in the Processes page of the Orchestrator web interface.
Here is an example of how you can do this:
- In the Orchestrator web interface, go to the Processes page and select the process you want to schedule.
- In the process details page, click the
Schedule
tab. - In the
Schedule
section, select theTrigger
option and choose theOn a specific date
option. - In the
Date
field, enter the date on which you want the process to run. This should be a holiday date. - In the
Time
field, enter the time at which you want the process to start running. - Click the
Save
button to save the schedule. - The process will now be scheduled to run only on the specified holiday date at the specified time.
in addition to above mentioned non-working day calendar approach or calendar calculation logic within the bot, we can check for:
Another technique is to enable / disable the Time Trigger in a scheduled way via the Orchestrator REST API
It’s worth having a look at the Nager.Date capabilities if it’s public holidays you’re looking for;
NuGet Gallery | Nager.Date 1.37.0
If you have the capacity, you could have a bot poll this and run every day, check if we have a public holiday on said day, and continue if so.
Otherwise, again, you could poll this, and add a transaction item to a queue, one for each public holiday, and postpone the transaction item(s) until the date of the holiday.
@Anil_G will this logic work for bank holidays.I need to run a trigger for only bank holidays.There might be around 10 bank holidays.But this holiday needs to be mentioned for a calender year.Now for eg 2024.I will be no working days in orchestrator.