Regarding TriggerTrigger

I have a scenrio where my orchestator is deployed in romania timezone and vm machine is also following the amsterdam time
And i need to run the bot every 2hours and while running the bot the process enters current date in the application so.
How can i cover all the 12 hours of the day using this

Hey @vishal_nachankar
If you want to run the bot every 2 hours, and you have Orchestrator set to Romania time and the virtual machine on Amsterdam time, you can do it like this:

  1. Set up a trigger in Orchestrator to run the bot every 2 hours. Make sure you pick the right time zone when setting up the schedule - either Romania or Amsterdam, depending on what works best for you.
  2. To enter the current date, use DateTime.Now in UiPath. This will make sure the bot always grabs the local time of the virtual machine.

This way, your bot will stick to the schedule without any issues related to time zone differences.

but the business for whom the process is developed is following mexico timezone and they want the process to start at 6 am mexico time and every two hours

@vishal_nachankar
You can set up the trigger in Orchestrator to run at 6 AM Mexico Time, and then repeat every 2 hours. When setting up the schedule, make sure to select Mexico Timezone in Orchestrator.

As for the dates in your process, you can use this to convert the current time to Mexico time:
TimeZoneInfo.ConvertTimeFromUtc(DateTime.UtcNow, TimeZoneInfo.FindSystemTimeZoneById("Central Standard Time"))

This will make sure the date entered by the bot matches what the business needs, regardless of the time zones on Orchestrator or the VM.