This is a follow-up to an earlier post of mine Re: Create CSV table input limited - Power Platform Community (microsoft.com).
I basically need to create a CSV table from an array. I used 'Append to string variable' within a loop, then convert this variable to a compose outside of the loop, then this is wrapped in a json expression when creating the table.
My first attempt ran successfully but it only brought across the outputs from the first loop. I figured that it was because the arrays had the characters ][ in between, so I have another compose which replaces the characters with a comma:
replace(outputs('Compose_2'),'][', ',')
However, I now get this error on the Create CSV table: The property 'columns' must be specified unless the 'from' property value is an array of objects.
I guess the code is no longer recognised as an array of objects, but I can't see how.
The code begins with "[{ and ends with }]". I tried removing the " but this also didn't work. Is there anything else I could try?