I believe the issue is that (with a prepared statement?) you cannot pass in the VALUES "parenthesized list of expressions" though I'm not certain as to why.
I've seen this type of question arise a couple of times, but I haven't seen a solution. I suppose a workaround would be to insert the values into a (temporary) table in the DB that you truncate when the use of it is done. You may also be able to execute the SQL as you have it if you turn off prepared statements, but I have not tried and generally try not to go that route.
Or I suppose you could put the values in an array of objects and then trigger an update query with additionalScope variables in a forEach loop, something along the lines of:
let foo = [{vid: 150, tpid: 123},{vid: 151, tpid: 124}]
foo.forEach(obj => updateQuery.trigger({
additionalScope: {
CTstatusesId: obj.vid, // add {{CTstatusesId}} in your update query
TempTrackPosId: obj.tpid // add {{TempTrackPosId}} in your update query
}
});
If you come up with a solution to make your original approach work, would love to hear it.
I tried a few more things an was not successful. Ultimately I created a retool bulk update query and passed an array to it using {{SaveUpdate.data}} which worked. Thanks for your help!