How to use a button block to edit multiple items quantity?

Hi, I am trying to use a button block to edit items quantity. For example, if items are in the purchased column I want to allow users to press the button and their inventory quantity is updated for all items. I have used the increment action, although it only works for one row. How can I get it to work for multiple rows/items?

You need to use the Glide API.

Either use the Call API action if you’re on a plan that allows it, or use the Glide API.

2 Likes

I had a similar issue with a button block for updating item quantities. What worked for me was using a loop to apply the increment action to all selected rows. You might want to see if your button can handle batch updates or try adding a custom script for bulk actions.

How do you actually apply a loop?