Good Morning,
I have some issues with Uipath API, when i try to use the AddQueue Item with complex types.
To explain it i will compare the AddQueueItem Activity with the API:
- Activity (OK): I can pass complex values as datatables, arrays or JSON as lon as i serielize them to string.
- API:
-
Simple data as Json works OK: (status code 200)
{
“itemData”: {
“Name”: “QueueNameItem”,
“Priority”: “Normal”,
“SpecificContent”: {
“FileName”: “Name”,
“FileSize”: “333”,
“id”: “98”
},
“DeferDate”: null,
“Reference”: “QueueNameItem”,
“DueDate”: null
}
} -
But when I try to pass complex values (an array, another JSON), (e.g as follows) , I obtain Error Code 400[Bad Request] and as a Message "“parameters is null!”:
{
“itemData”: {
“Name”: “QueueNameItem”,
“Priority”: “Normal”,
“SpecificContent”: {
“Info”:
{
“FileName”: “Name”,
“FileSize”: “333”
},
“id”: “98”
},
“DeferDate”: null,
“Reference”: “QueueNameItem”,
“DueDate”: null
}
}
As i said, if do the same with the Uipath activity it works perfectly, but i need to have the same behaviour in both ways (to be clean in my codes and structures)… I am missing something?
Thanks in advance,