I need help please!
I'm trying to build this flow where im appending an array variable with some data and later need to retrieve that to build an html table off it. I'm having hard time setting the variable correctly and then parsing it. Below are my excerpts of steps from my flow where im setting the variable and retrieving them where I get this error.
1. Initializing variable
2. Appending data to variable
3. Parsing the data from variable
{
"type": "array",
"items": {
"type": "object",
"properties": {
"ItemId": {
"type": "string"
},
"BatchId": {
"type": "string"
},
"DateTime": {
"type": "string"
},
"Qty": {
"type": "string"
},
"Location": {
"type": "string"
}
}
}
}
4. Error I receive when i run my flow.
In this screenshot also see how my data is being stored in the variable
Any suggestions to help me fix this and do it correctly will be highly appreciated. Thanks
Solved! Go to Solution.
Can you send me a screenshot of the append to array action or the entire flow.
The data pasted above doesn't appear to be correct. The Append to array action should resemble something like this, with no surrounding squares brackets [ ] :
Depending on what you are doing, you may not need to use Parse JSON.
Ellis
Try modifying the Append to array action as:
Example:
Which results in an array
Ellis, when i do that and see the output in compose it looks like this
Can you send me a screenshot of the append to array action or the entire flow.
The data pasted above doesn't appear to be correct. The Append to array action should resemble something like this, with no surrounding squares brackets [ ] :
Depending on what you are doing, you may not need to use Parse JSON.
Ellis
This visual helped alot! It was that square bracket and quotations. I'm all set now and was able to parse correctly to create my HTML table. Thanks so much for your help, Ellis!