Create a repeat, select your db query as expression
In the repeat, create a 'Set Value'. Name: obj, Value: {{{Name:mj_property_name,Value:mj_property_value}}} (for me I need an object with two keys: "Name" and "Value")
Now to send it with the API Action, I did:
7. Parse the object to JSON... Outside of the repeat, create a new 'Set Value' with the following name and value:
Inside the âgroupâ make a repeat step and bind it to the query.
In repeat properties in âOutput fieldsâ choose fields you need. (Or change the âOutput filterâ to Exclude and leave âOutput fieldsâ empty in case you want all fields)
Inside repeat add an empty step, like comment, because repeat canât be empty.
Finally, add a âSet valueâ step, bind it to âgroupâ and manually add formatter âtoJSON()â
We will be adding soon a special Array List component in Server connect that will make array manipulations more easy. So you can much more easy add, append and manipulate records and output them