Update Row
Last updated
Was this helpful?
Last updated
Was this helpful?
The Update Row action step allows you to update a row or multiple rows in a table by a given condition.
To run this action, you need to specify the filter condition to find the row to update, for example:
And you also need to specify the values to update. You can do this in the following ways:
Update values field by field:
Switch to JS mode (JS button) and send the updated values as an object:
or:
This object will be sent to the server and converted to an UPDATE
statement, for example:
You can check the action's Payload tab to see the actual object sent to the server.
If any conditions are specified as null or undefined, they will be removed from the conditions list. If all conditions are removed, it may result in updating all rows in the table if the Bulk Update setting is enabled.
Unset fields will be presented as undefined and will NOT be used in the UPDATE
statement:
You can always adjust the data before sending it.
The created_at
column must exist in the table schema, otherwise it will not be sent.
or:
We recommend being very careful with this setting since it can update all rows in the table.
If you need to update multiple rows, you can select the checkbox in the action's settings.