How to check the count of the queue items?

Hi All,

I want to check the count of the all queue items, and need to check the condition as below:
Bot needs to add the new queue items only if the queue count less than 1.

please help me on this

Hi @naveen.s

First use the Get Queue Items activity to get the count of the queue items added into the queue. Then you can use the If condition to check the count less than 1, In then block you can use the Add queue item or bulk queue item activity to add the queue items to the queue.

Check the below image for better understanding,

In the properties of Get Queue Item activity you can check the Options in Queue Item statuses based on your check options it will get all the queue items with sepcified status.

Hope it helps!!

@mkankatala strong textI am using dispatcher and performer in same re frame work, if any exceptions occurs I dont want to add queue again.

Can you give me the solution please??

Okay @naveen.s

In which state you are adding the queues…?

We recommend you to add the queues in the First run sequence in Initialization state. This First run sequence will execute for the first time only in the execution, then it will add all the required queue items only once. If any exception occured in any of the state in ReFramework not a single new queue item added to the Queues.

Hope it helps!!

init state I am adding

1 Like

Then you are following correct way… @naveen.s

Happy Automation!!

1 Like

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