Before the robot start processing the queue items, I would like to check how many items are in the queue for the robot to process.
So for that I’ve used Get Queue Items activity and output the variable as QueueItem. Then from there put a code as “QueueItem.Count” to get the count (new status). But it resulting the max number of 100 only.
For example, if i have 300 items in the queue as New status. But using above approach it only shows as 100.
@Serran_Neru,Get queueitems items returns max 100 only.Which scenario are you working on?
Generally we use multiple robots to handle queueitems so that we can process the data faster.So that won’t be the issue
I need the data because with total number of items that robots will process, I can calculate the estimated completion time. This will help me to manage my team capacity.
@Serran_Neru, you can simply create a loop and get 100 items per loop - increase a ‘batchCounter’ by 100 each loop until all queue items read. There is a function within ‘Get queue items’ activity called ‘Pagination’. Use your ‘batchCounter’ variable (initially set to 0) within ‘skip’ field - and put 100 in the ‘Top’ field. Have another ‘totalCounter’ to track how many items in total get retrieved from your queue (Set the field ‘QueueItemStatus’ to new, or successful, or fail etc depending on what you want to retrieve/count).