Hi, if you have items in the queue and want to find out if you seen them before, if it should be worked on, or figuring out what to do when you see the item looping . Is there any way to have this done?
Im trying to for example if i have a new item, or item ready to work on, previous worked on item. I want to each step to do a certain activity.
.if its new - i want it to wait till status is Done”
If its old item in queue- i want it to do nothing
This is just an example
For this, you can use Get Queue Items activity. Pass the Reference value to be checked if the same referenced QueueItem already in queue or not.
If it’s there, you can skip it else add it.
Thanks,
Ashok
But what if I want it to do activity when it sees a new item,
Hi @Sira
In UiPath, you can add only the file name to a queue using a combination of activities. While there isn’t a single activity that directly adds just the file name to the queue, you can achieve this with the following steps:
- Get the File Name: Use the
Assign
activity to extract the file name from the full file path. - Create a Queue Item: Use the
Add Queue Item
activity to add the file name to the queue.
Get Transaction Item will retrieve only New status Queue Items. You can use this if you want to take action on that queue Item.
Just remember to use Set Transaction Status activity after your action so the transaction item would not be left in In Progress status.
Thanks,
Ashok
If you use get transaction item only the new state items are picked and no other state are picked…once the item is picked the state would immediately change to in progress so it would not be picked again…you can set status to failed or successful as you wish
Cheers
This topic was automatically closed 3 days after the last reply. New replies are no longer allowed.