I currently have two separate processes. One is an email process that should run once per day, and the other is a simple process that should run every hour. I want to avoid creating separate triggers for both processes in Orchestrator. Instead, I want to create a single Boolean Asset that controls execution.
At the start of each day, the asset value should be True, so the daily email process runs once. After it runs, the asset should automatically change to False and remain False for the rest of the day. While the asset is False, only the hourly process should run. The next day, the asset should reset to True again so the cycle repeats.
You can use get asset at the start to read the Boolean Asset. If the value is True, run the daily email workflow and then use Set Asset to update the value to False. If the value is False, run only the hourly process.
Add a time check using Now.Date and compare with a stored date value; when the date changes at midnight, use Set Asset to reset the Boolean Asset back to True so the next day starts fresh.
If helpful, mark as solution. Happy automation with UiPath
Use a single hourly trigger and control the execution logic inside the workflow instead of managing multiple triggers or resetting a Boolean asset daily. Create a Text Asset (e.g., LastEmailRunDate) to store the last successful email run date. Each hour, the process checks today’s date against the asset value,if they are different, it runs the daily email process and updates the asset with today’s date; otherwise, it skips the email and runs only the hourly process.
Using this approach avoids the need for a midnight reset, reduces dependency on multiple triggers, and is more reliable in case of failures or downtime.
I would suggest to create separate triggers as I don’t see really any dependency or need to overcomplicate this. We can have n number of triggers and it should be leverage as it will help you to keep your solutions maintainable.
there are ways to do this but it just complicated with unnecessary conditions in process, best is to use two triggers with input boolean argument and set true in one and false in one