I am trying to map an array variable to the Planning Module but no matter what I do, I get an error "Array of objects expected in parameter 'F6914a6c02f21335b7b794d35'." I have tried to just have the ID numbers, the "id: xxxxxxx" and plenty of other things to get this to work but I don't know what it wants and I can not find any documentation on Planning Module specifics.
When I put the variables in one at a time in the without mapping, it works (but I will never know the set amount of objects so I need the array). If anyone has any ideas, I would appreciate it.
My Variable Expression:
The Variable Output:
Planning Module Input:
Error:
Solved! Go to Solution.
Views
Replies
Total Likes
Hi @DylanNight ,
Could you also check if on the Planning Module input you have this message
If yes this might be the limitation.
If no then the next thing to check is the array itself, per error message it seems like they are expecting array of objects and you are sending primitive array (array of strings).
You should consider using the array aggregator or even maybe building a json string which would have structure similar to
[
{
"ID":123
},
{
"ID":456
},
{
"ID":789
}
]
Hopefully this helps.
Best regards,
Ivan
Hi @DylanNight ,
Could you also check if on the Planning Module input you have this message
If yes this might be the limitation.
If no then the next thing to check is the array itself, per error message it seems like they are expecting array of objects and you are sending primitive array (array of strings).
You should consider using the array aggregator or even maybe building a json string which would have structure similar to
[
{
"ID":123
},
{
"ID":456
},
{
"ID":789
}
]
Hopefully this helps.
Best regards,
Ivan
Thank you @IvanBebek-iX
That field can contain more than one item. I have been trying both the array aggregator and building the array with json. The Planning Module will not accept anything mapped, in any format I have tried. With not very much documentation for the Planning modules or the syntax that planning uses, things like this become frustrating.
I will keep trying.
If you have successfully mapped an array you had to create (not an array pulled), I would be interested to see what that looks like.
Views
Replies
Total Likes
Hi @DylanNight ,
I did not do this directly but I did something similar, one more question did you also try to convert the JSON string into an array using the Parse JSON module?
If this did not work I would wrap the array in an object before parsing so something like
{
"array":[
{
"ID":123
},
{
"ID":456
},
{
"ID":789
}
]
}
And then once the parse JSON module is triggered you should have array called "array" to use in the WF Planning module .
Please let me know if this works.
Best regards,
Ivan
Views
Replies
Total Likes