Problems with AddQueueItem via API

Hi

I’m trying to add a new transaction into an existing Queue via the Orchestrator-API (2018.1.2):
{
“itemData”: {
“Name”: “QueueName”,
“Priority”: “Normal”,
“SpecificContent”: {
"Parm1": "test",
"Parm2": "test"
},
“DeferDate”: null,
“DueDate”: null
}
}

and getting a 400 Bad Request (no further error or anything useful :frowning:

I also tried:
{
“itemData”: {
“Name”: “Queue Name”,
“Priority”: “Normal”,
“SpecificContent”: {
“Parm1”: “test”,
“Parm2”: “test”
},
“DeferDate”: null,
“DueDate”: null
}
}

Any suggestion is appreciated.

Hi,

Find here the template for Itemdata that I am using.

{
“itemData”: {
“Name”: “@queueName”,
“Priority”: “High”,
“SpecificContent”: @data,
“DeferDate”: null,
“DueDate”: null,
“Reference”: “ref2”
}

}

Cheers

Thank you. Unfortunately, still the same.
Header:
Content-Type: application/json
Authorization: Bearer

correct?!

Hi,

you are using Authorization: Bearer " & authToken, authToken being what you get from the Authentication method, right?

Also could you confirm you are using the following endpoint and not a POST on \QueueItems?

"/odata/Queues/UiPathODataSvc.AddQueueItem"

Cheers

Hi

everything correct, except that I am actually using POST - I believe this is the method of choice according to the manual…

Yes, this is correct.
I mean you should not use the endpoint orchURL/odata/QueueItems

Cheers

Hi

Problem seems to be related with the installed version. 2018.1.2 does not seem to have worked properly, I upgraded to 2018.4.2 and it works as expected. Upgrade was rather painful.

Thanks for your effort.

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