I do a reccursive insert with a JS script and found a way to get the id of the inserted row.
But the var return always the first created id and does not refresh accross iterrations.
I had (have) a lot of trouble with recursive scripts in retool. I think it has to do with the script running faster than Retool updates the object youβre expecting an updated value from. The way I handled this was by adding delays when I know another trigger has to update a variable, usually 2000ms. I know there are better ways, such a promise functions/asynchronous functions but Iβm entirely self taught and only recently starting using javascript specifically for this so Iβm not familiar with those options.