Are you sure that the flow data is not an array already? Please show us an example of the retrieved flow data, if it is an object you can convert it to an array using JSONata($$.payload.*
) or Javascript (Object.values(msg.payload)
)
example
[{"id":"70124611571c8688","type":"inject","z":"366a43adb328cf95","name":"add data","props":[{"p":"payload"},{"p":"tabulatorCommand","v":"addData","vt":"str"}],"repeat":"","crontab":"","once":false,"onceDelay":0.1,"topic":"","payload":"[{\"id\":1,\"one\":1,\"two\":2},{\"id\":2,\"one\":3,\"two\":4}]","payloadType":"json","x":340,"y":1220,"wires":[["e958cb8944b83557"]]},{"id":"e958cb8944b83557","type":"function","z":"366a43adb328cf95","name":"holder for handler","func":"// replace this with handler as forum would not allow upload over limit\nreturn msg;","outputs":2,"noerr":0,"initialize":"","finalize":"","libs":[],"x":530,"y":1260,"wires":[["9a5aa867d645faf3","cda1c69ad8d61397"],["d486767eb2e2ef71"]]},{"id":"98fde25c61e74745","type":"inject","z":"366a43adb328cf95","name":"get data","props":[{"p":"payload.command","v":"getTable","vt":"str"},{"p":"topic","vt":"str"}],"repeat":"","crontab":"","once":false,"onceDelay":0.1,"topic":"","x":340,"y":1360,"wires":[["e958cb8944b83557"]]},{"id":"9a5aa867d645faf3","type":"ui_table","z":"366a43adb328cf95","group":"2d4fe667.28f8ba","name":"","order":16,"width":0,"height":0,"columns":[],"outputs":0,"cts":false,"x":670,"y":1200,"wires":[]},{"id":"cda1c69ad8d61397","type":"debug","z":"366a43adb328cf95","name":"debug 95","active":true,"tosidebar":true,"console":false,"tostatus":false,"complete":"false","statusVal":"","statusType":"auto","x":720,"y":1260,"wires":[]},{"id":"d486767eb2e2ef71","type":"debug","z":"366a43adb328cf95","name":"debug 96","active":true,"tosidebar":true,"console":false,"tostatus":false,"complete":"false","statusVal":"","statusType":"auto","x":720,"y":1320,"wires":[]},{"id":"6144472ebcb6bcc8","type":"inject","z":"366a43adb328cf95","name":"","props":[{"p":"payload"},{"p":"topic","vt":"str"}],"repeat":"","crontab":"","once":false,"onceDelay":0.1,"topic":"","payload":"","payloadType":"date","x":340,"y":1440,"wires":[["13d0cd191c15cb59"]]},{"id":"13d0cd191c15cb59","type":"change","z":"366a43adb328cf95","name":"","rules":[{"t":"set","p":"payload","pt":"msg","to":"tableData","tot":"flow"},{"t":"set","p":"payload","pt":"msg","to":"$$.payload.*","tot":"jsonata"}],"action":"","property":"","from":"","to":"","reg":false,"x":500,"y":1440,"wires":[["6e1e9e7f7b9c25d8"]]},{"id":"6e1e9e7f7b9c25d8","type":"debug","z":"366a43adb328cf95","name":"debug 97","active":true,"tosidebar":true,"console":false,"tostatus":false,"complete":"false","statusVal":"","statusType":"auto","x":660,"y":1440,"wires":[]},{"id":"2d4fe667.28f8ba","type":"ui_group","name":"demo","tab":"1caa8458.b17814","order":1,"disp":true,"width":"12","collapse":false},{"id":"1caa8458.b17814","type":"ui_tab","name":"Demo","icon":"dashboard","order":1,"disabled":false,"hidden":false}]