I was referring to the same flow that you added as attachments in this post.
In the get rows excel action, you are parsing some json and composing another object. But you are not using the output of the Compose Task Json action anywhere. IN the append to array variable you are appending the current item that is the current item from the parse json action.
As per your flow, you are getting table data from excel sheet. Can you please confirm if this is getting all the rows or just getting one row based on some filters?
You have an apply to each loop with iterates over the array of elements returned from excel (This could be one row or multiple rows), now you are parsing the child items as JSON and appending it to array, which would create a number of objects in the same array.
If you are getting multiple records through the above steps, then your "items" array will look something like:
[
{
"Email":"abc@xyz.com",
"Art":"testart",
...
"Ausfuehrende_Firma":"Test123"
},
{
"Email":"def@xyz.com",
"Art":"testart1",
...
"Ausfuehrende_Firma":"Test1234"
}
]
This will create a type mismatch if we try to remove the array square brackets because as per the request format, your data attribute is expecting a single object but in this case, you may have multiple objects returned.
In case you want to refer to specific array index value, you can select that value as:
variables('items')[0] or variables('items')[1].
Hope this Helps!
If this reply has answered your question or solved your issue, please mark this question as answered. Answered questions helps users in the future who may have the same issue or question quickly find a resolution via search. If you liked my response, please consider giving it a thumbs up. THANKS!