Hi I tried to pass array items to ONE Transaction item to queue using cloud orchestrator api but getting error as "Parameters must not be Null ". Can you please let me know if it is possible to pass array value directly to queue via API?
Because in this post, they have mentioned it is not possible to pass array directly to queue
How to fix the issue?
How to pass an Array / List into Orchestrator Queue using "Add Queue Item"?
Note: It is not possible to add an array directly as a queue item. However, it is possible to serialize it to a JSON string and then add the json string as queue item. While retrieving queue item, the json can be deserialized to get the actual array.
Check the below screenshot and use the same method to pass an array to queue.
[1 - Image_2019-07-10_10-35-21.png]
To fetch the value use Get Transaction Item. Check…
Below is my array payload :
{
“itemData”: {
“Priority”: “Normal”,
“Name”: “queue3”,
“SpecificContent”: {
“shopName”: " webshop",
"srNumber": "SR10036",
"location": "Germany",
"emailAddress": "sathish@outlook.com",
"deliverTO": "sathish kumar",
"date": "Tue, 28 Sep, 2021",
{
“Products”:[{
“productID”: “VM_580-ADFO”,
“productName”: “Jabra Evolve 40 UC Stereo”,
“qty”: 1
},
{
“productID”: “VM_7599-838-109”,
“productName”: “Wireless Keyboard”,
“qty”: 2
}]}
ppr
(Peter Preuss)
September 20, 2021, 2:43pm
2
Looks like duplicate of:
I am using Add to queue item API to add below information in Queue. I want to add “Products” array to store multiple products detail and store into one transaction item .
But getting below error . Please guide me
[image]
Below is the payload :
{
“itemData”: {
“Priority”: “Normal”,
“Name”: “queue3”,
“SpecificContent”: {
“shopName”: “webshop”,
“srNumber”: “SR10036”,
“location”: “Germany”,
“EmailAddess”: “sathish@outlook.com ”,
},
{
“Products”: [{
“productID”: “VM_580-ADFO”,
“produ…
And when refering to different documentations the need of primitive datatypes within the specificContent String /Object Dict is mentioned (along the hint of not using arraysin e.g. schemas)
The UiPath Documentation Portal - the home of all our valuable information. Find here everything you need to guide you in your automation journey in the UiPath ecosystem, from complex installation guides to quick tutorials, to practical business...
that is why we do serializing the array
In the desribed procedure
the String Array firstHalf = {“1”,“2”,“3”,“4”}
serialized by: JSONConvert.SerializeObject(firstHalf)
as now for the SpecificContent Dictionary Entry a string is used instead of an array it will be accepted
loginerror
(Maciej Kuźmicz)
Closed
September 21, 2021, 12:20pm
3