Hi - I face a (trivial?) problem, but I could not fix it so far and in the forum I could not find a post. Here is my problem:
In a code workflow I create an object with records I want to use in a following query block. Using GUI this works perfectly with Bulk insert records referring to the object {{codeblock.records.data}}.
However, I want use SQL to achieve that, adding the command returning id to get the ids of the created records directly from the database.
Unfortunately I could not figure out how to access the keys/columns and the values of the object {{codeblock.record.data} in an INSERT INTO statement.
Tried almost everything, changed the code block so that it returns columns and values in separate arrays and then try to unnest it in the SQL statement. But Retool always returns a syntax error.
Any idea what I'm doing wrong?