Update Quantities (simple)
Add or subtract values of a record in a main table from the triggered record
![Screen Shot 2022-08-15 at 17.02.23.png 754](https://files.readme.io/6538a7d-Screen_Shot_2022-08-15_at_17.02.23.png)
With the action “Update Quantities (simple)”, you can Add or subtract values of a record in a main table from the triggered record when the chosen trigger is activated.
Trigger -> Action
The most important thing about a trick is understanding its conditions and actions. They have a simple generic structure:
When the condition (trigger) happens, then do (action).
Trigger -> Action
How to create
You just have to click on the "+ Automations" icon on the upper right corner of the screen to open the No code automations panel, and then on the "+ Create new automation" button:
![Screen Shot 2022-08-15 at 18.08.43.png 464](https://files.readme.io/7bfe28f-Screen_Shot_2022-08-15_at_18.08.43.png)
Select the trigger of your choice to activate the action, then select the "Update Quantities (simple)" action, and fill in the options:
- Choose the Main tab:
- This is tab in which the quantity to be updated is located. For example, it could be an "Inventory" tab, if you're updating "Quantity" in an inventory.
- Set the id of the record to be updated:
- Set the id of the record to be update (for example, in the Inventory field)
- Set the quantity field to update:
- This is the field to be updated. For example, it could be the "Quantity" field in the "Inventory" tab.
![Screen Shot 2022-08-22 at 13.00.21.png 788](https://files.readme.io/8f6ed66-Screen_Shot_2022-08-22_at_13.00.21.png)
- Set the quantity values to be used:
- Set the amount to be subtracted or added to the quantity field.
- Choose whether to add or subtract quantity:
- operation
![Screen Shot 2022-08-22 at 13.02.02.png 788](https://files.readme.io/b7097f0-Screen_Shot_2022-08-22_at_13.02.02.png)
Click on save
Updated over 2 years ago