How to Get Queue Item using UiPath API

Hi guys, I know how to retrieve queue item using API by id and works fine. But I find it inconvenience, I would like to retrieve it by using Queue name (Definition instead of ID)

Below is the code I have tried but I keep on getting Error.

    "message": "An error has occurred.",
    "errorCode": 0,
    "resourceIds": null

My Headers:

Content-Type: application/json
Authorization: Bearer xxx1234556
X-UIPATH-OrganizationUnitId: 1
X-UIPATH-TenantName: Default

My API Uri is this:

***** /odata/QueueItems?$top=1&$filter=Robot/Description eq 'BirthdaysQueue' and Status eq UiPath.Core.Model.Queues.ProcessingStatus%27New%27

cc: @ppr

Looking on the swagger page a QueueItemDTO does not define a Property Robot/Description

With expand QueueDefinition we can include this DTO also and can use it for filtering:


Syntax: QueueDefiniton/Name eq ‘YourQueueName’

1 Like

Hi @ppr I have tried the solution and I’m getting below error.

  "message": "Invalid OData query options.",
  "errorCode": 1000,
  "resourceIds": null

we do need to know the details on what you have done / configured the request.

Kindly note the above mentioned call was checked in swagger and retrieved WorkQueueItems.

Thanks a lot!

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