Is there a way to edit multiple rows with workflow?
I had an idea to trigger JSON to a Glide webhook and I get an array of row IDs and numbers which I need to to update according to those row IDs. But I can’t loop over that array.
The initial numbers are from user specific column.
I have an inventory and need to update items quantity in the column there. I have row IDs of the rows I need to update those items quantities in.
Initially I have Tasks with those items related. So when I complete the task and use specific items in the process, I need to subtract them from the Inventory table. I also put the quantity of used items first in the user specific column (different values) and then I need to subtract them from Inventory.
I agree, but for example sometimes people order in bulk for many products and its frustrating to do them 1 by 1, I think he meant he wants to use the row ID as a search key
Pass your JSON to a workflow. It needs to be either a Manual or Webhook triggered workflow.
Add a Query JSON node, and point it at the Trigger Data, and extract items
Add a Loop and target the transformed JSON from the Query
Inside the Loop, add the following:
– Two Query JSON nodes, one each to extract the id_ and qty
– A Query node that matches the extracted id_ with the RowID in the table you want to update. Be sure not to select “Match multiple”
– A Set Column Values node that targets the Query, and updates the appropriate column with the extracted qty value.