Skip to main content
Question

How to check status of workitems in queue.

  • December 5, 2022
  • 3 replies
  • 353 views

Forum|alt.badge.img+1

Dear All,

 

Can anyone please suggest how to check if the a record containing a “Customer Account” as a unique key is already there in the Queue with the Status as “NEW”.

Your quick response will be appreciated and it will definitely going to help me alot.

Thanks and Regards,

Umesh Kumar

3 replies

Padmakumar
Premier Pathfinder | Tier 7
Forum|alt.badge.img+15
  • Premier Pathfinder | Tier 7
  • December 5, 2022

Hi @UmeshPharwaha,

 

I am not sure whether this will answer your question. But uou can access the Work items table once those are loaded, and check/sort based on the Item_Name or Work Item result column.

 

In addition to this, you can also utilize the Control room APIs.


Forum|alt.badge.img+1
  • Author
  • Cadet | Tier 2
  • December 5, 2022

Hi @Padmakumar,

 

Thanks for answering the question. But, I know how to check manually. I wanted to check though bot.

 

Thanks


Forum|alt.badge.img+4
  • Navigator | Tier 3
  • December 5, 2022

You would have to use the Control Room APIs for this which can extract data from any queue based on certain column and date values- 

I created a component that uses the APIs in below order:

 

API to extract Work Items- 

$System:AAControlRoom$v3/wlm/queues/$pStrWLMQueueID$/workitems/list
 

Custom parameters to pass

{
   "filter":{
      "operator":"and",
      "operands":[
         {
            "operator": "eq",
            "value": "$iStrFilterValue$",
            "field": "$iStrFilterColumnName$"
         },
         {
            "operator":"gt",
            "field":"createdOn",
            "value":"$pStrDateFilter$"
         }
      ]
   }
   }