Attend robot limitation

Hello ALL i want to limit our attended robot so they cant run it from assistant if for example the robot has run 10 minutes ago,

where i can check that if there is in the Database or in the activates !

BR HAZEM

1 Like

One way to limit your attended robot so they can’t run it from UiPath Assistant if it has run 10 minutes ago is to use a UiPath trigger. You can create a trigger that is fired when the robot is started. The trigger can then check the database or activities to see if the robot has run in the last 10 minutes. If it has, the trigger can prevent the robot from starting.

Hope the below steps would help you resolve this

  1. Maintain a database (e.g., SQL Server) where you store a record each time the robot runs a process. This record should include a timestamp indicating the last run time.

  2. When the robot attempts to run a process, query the database to retrieve the last run time.

  3. Calculate the time difference between the current time and the last run time.

  4. If the time difference exceeds your defined threshold (e.g., 10 minutes), allow the robot to proceed with running the process. Otherwise, deny execution and provide a message indicating that it’s too soon to run the process.

  5. After successfully running the process, update the database with the new timestamp.

Cheers @Hazem_Saleh

1 Like

@Hazem_Saleh

Create a database table to store information about when each robot last ran a specific process.
In your workflow, when a robot attempts to run a process, query the database to retrieve the LastRunTimestamp for that robot and process. If there is no record, it means the robot hasn’t run the process before.
Calculate the time difference between the current time and the LastRunTimestamp . If the time difference is less than the specified RunInterval , then the robot must wait before running the process again.
If the time difference is greater than or equal to the RunInterval , allow the robot to run the process. Update the LastRunTimestamp in the database to the current time.

Cheers

1 Like

Hope it’s clarified @Hazem_Saleh

Using the “Get Asset” and “Set Asset” activities you can control when the bot should run based on the current date.

You can update an asset with the current date each time the bot runs, and then use the “Get Asset” activity to check if it matches the current date before proceeding. If they don’t match, the bot can continue running. This is an effective way to ensure that the bot runs only when the asset’s date doesn’t match the current date.

Every solution is right but this the easiest

Thanks

1 Like

This topic was automatically closed 3 days after the last reply. New replies are no longer allowed.