Using the REFramework, I wanted to be able to detect and create a report (grabbing the status of all the items in the queue) when a user stops the processing via the UiPath Assistant. Note, user is running an attended bot the UiPath assistant.
You can use a get queue items activity on the yes side of the should stop activity and then loop through each queue item and then create a report as needed…
And to get only current run items…you can store the start time of the bot in the initialize state before the queue items are added…and can use that time in the filters of get queue items activity to get only the queue items created after that time…
Hope this helps
Ccheers
Hi @Anil_G thanks for that.
What will be the format of the start time? And how will I add it in the Get Queue Item activity?
Format of start time is a datetime variable…at the start of the process store the value of Now to a datetime variable and you can pass it directly.In get queue items there is already a field for from …that is where we add it
Cheers