How do we get all queue names of orchestrator from studio using http request

Hi all,

I needed an help to get the queuenames from orch through studio.
Could you please let me know the endpoint and steps to achieve

@Palaniyappan @Anil_G any inputs here

1 Like

@Harshita_D

Use orchestartor http request

the end pint is odata/queueitems

Please check this for more

<OrchestratorURL>/swagger/index.html

https://docs.uipath.com/orchestrator/automation-cloud/latest/api-guide/queue-items-requests

cheers

But endpoint says queue items.does it give queue name? @Anil_G

@Harshita_D

Sry i misread it…please use this

odata/queueDefinitions

please check the swagger for more info

cheers

But I am getting some html content when I hit that @Anil_G

By the way I am using orch http request activity

@Harshita_D

its not html…you will get a json response

you need to deserialize it and then use

for loop with jsondata("value").Cast(Of Jobject)

and inside loop use currentItem("Name").ToString

cheers

1 Like

@Anil_G what does value stand in that for each syntax

Hi

You can get through api and have a view on this doc from postman

Try out first in postman and replicate the same with UiPath https request activity

Or

You can also try with swagger where u can try out and see how api call works and mimic the same in UiPath studio
In order to open swagger for your orchestrator url
depending on your deployment type:

  • on-premise - add the following suffix: /swagger/index.html to your Orchestrator URL. For example, https://myOrchestrator.com/swagger/index.html.
  • Automation Cloud - add the account and tenant name, as well as the /swagger/index.html suffix to the URL. For example, https://cloud.uipath.com/[AccountLogicalName]/[TenantName]/swagger/index.html.

Find your Account Logical Name and Tenant Namein the API Access page of your Automation Cloud account.

There u can try this out

Cheers @Harshita_D

@Harshita_D

value is the key where all the queue definitions are stored in response as jarray

To loop jarray items using for loop…and inside each item you have each queue name which is stored in name key

Hope this clarifies

Cheers

Here in my case agar should I pass in for each list of items

@Harshita_D

Output2("Value")

In for loop select type argument as jobject

And in your deserial also please select jobject instead of using object…I see object selected as of now

And your relative end point is test which is wrong…please use it properly

Cheers

Ha I created a sample @Anil_G just to show you

End point is updated in the code as expected

@Anil_G all done but not able to change type of argument in for loop

@Harshita_D

Then please use output2("value").Cast(Of Jobject)

With this you need not change type argument

Cheers

No I am getting an error

@Harshita_D

Did you change the type argument to jobject in deserialize json activity?

I feel you dint

Cheers

Yes I did, I made it to newtonsoft.json.linq.jobject

@Harshita_D

And i hope your output2 is of type jobject…please check in the variable panel…it ahould be jobject

Cheers