Hi @mpuga! Would something like this work for you?
You'd have a JS query that looks like:
const id_arr = table1.selectedRows.map(row=>row.id) //your array of things to iterate over
const query = deleteRow // your query to trigger for each
const promises = id_arr.map((id) => {
return query.trigger({
additionalScope: {
id_from_scope: id //assignment_id would be available inside {{id_from_scope}} in the target query when run
}
});
});
return Promise.all(promises)
And your single Delete query would look like