You’ll want to manipulate the .recordUpdates property using JS, my preferred method is doing it inside of the {{ }} tag in the bulk update. We have the lodash library built into retool, and their _.pick or _.omit methods are great for this. Pick grabs just the specified keys from an object, and Omit grabs all of the keys except for the specified one.
This is the example for a single object on Lodash’s docs:
Here’s how I’d do it in Retool for recordUpdates, to grab just the name, age, and createdAt columns: {{ table1.recordUpdates.map(row => _.pick(row, ["name","age","createdAt"]) ) }}
No query is shown there. It's quite hard to debug. Maybe the possibility to show all executed queries in the interface or in the console.log would help.
While the logic of using the built in JS lodash library as mentioned in Alex's comment above to filter data from the table's state is still correct, the table's state property has been renamed from the previous table1.recordUpdates and has been split into several properties that can be used in various ways to access the row data of one or many selected rows to then filter out the data to pass into the bulk update query.
You now have access to much greater granularity and our docs on the table component includes a full list of all the properties, such as .selectedRows.changesetArray and .changesetObject will be very useful for most cases for passing into queries or filtering and saving to a variable first!