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
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
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
Sry i misread it…please use this
odata/queueDefinitions
please check the swagger for more info
cheers
By the way I am using orch http request activity
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
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:
/swagger/index.html
to your Orchestrator URL. For example, https://myOrchestrator.com/swagger/index.html
./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 Name
in the API Access page of your Automation Cloud account.
There u can try this out
Cheers @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
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
Then please use output2("value").Cast(Of Jobject)
With this you need not change type argument
Cheers
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
And i hope your output2 is of type jobject…please check in the variable panel…it ahould be jobject
Cheers