Update Data
Overview
The Update Data Node allows you to modify existing records in a database table. It is ideal for workflows where data needs to be updated automatically — for example, changing a user’s details, updating a timestamp, or modifying status information after another node’s execution.
This node works within your selected environment (like production) and uses query fields to locate the target record, then data parameters to apply the updates.
Description
Modify existing records in your database.
Use this node to update data in your connected database. You can define which record(s) should be updated by setting query fields (such as id, name, or email) and then specify what values to update using data parameters.
Production Environment
Update data in your live production tables. Use this for real user data.
Development Environment
Update data in development tables for testing and validation without affecting live data.
For example, if you want to change a user’s name and email based on their ID, you can use this node to perform that action automatically — no SQL required.
Input Parameters
The Update Data node accepts the target collection name, query fields to find records, and data fields to update.
collectionNamestringRequired"production:users" or "development:orders"Query FieldsobjectRequired{"id": "12345"}Data ParametersobjectRequired{"status": "active", "last_login": "2023-10-27"}Dynamic Values: You can use variables from previous nodes in both Query and Data fields:
Query: { "email": "{{form.email}}" }
Data: { "status": "verified" }
Output Parameters
The node returns a structured JSON object containing the results of the update operation.
tableNamestringOptional"production:users"queryIdstringOptional"1d6330c7-e3c8..."updatedCountnumberOptional1messagestringOptional"Successfully updated 1 record(s)"statusstringOptional"success"Access output values in your workflow using:
{{update-data.output.updatedCount}}
{{update-data.output.status}}
Output Type
Output Type: JSON
The node produces a JSON object as output, summarizing the operation’s success and update results. This output can be used by subsequent nodes for conditional actions or logging.
Example Usage
Example 1: Update User Profile
Update a user's name and email based on their ID.
{ "collectionName": "production:users", "Query Fields": { "id": "10" }, "Data Parameters": { "name": "John Doe", "email": "jd@gmail.com", "updated_at": "2025-12-01T12:00:00.000Z" }}
{ "tableName": "production:users", "queryId": "1d6330c7-e3c8-4712-a12f-4594242321d1", "updatedCount": 1, "message": "Successfully updated 1 record(s)", "status": "success"}
Example 2: Update Order Status
Change an order status to "shipped".
{ "collectionName": "production:orders", "Query Fields": { "order_id": "ORD-5521" }, "Data Parameters": { "status": "shipped", "shipped_at": "2025-10-27T10:00:00Z" }}
{ "tableName": "production:orders", "queryId": "99a88b77-...", "updatedCount": 1, "message": "Successfully updated 1 record(s)", "status": "success"}
How to Use in a No-Code Workflow
Add the Node
Add the Update Data Node from the Database category in your workflow.
Select Table
In Table Name, select the database table you want to modify (e.g., production:users).
Define Query
Add Query Fields to define which records to find. For example: id = {{input.id}}.
Define Updates
Add Data Parameters to specify what will be updated. For example: status = "active".
Run Workflow
Save your configuration and run the workflow. Review the output message to confirm the update.
Best Practices
- Always use a unique identifier like
idin your query fields to ensure only the correct record is updated. - Double-check that you’re updating the correct environment (e.g., production vs staging).
- Use the output
messageandstatusfor error checking or logging.
Do / Don’t
- ✔️ Format timestamps correctly (ISO format) before updating.
- ✔️ Test updates on
developmenttables first. - ✔️ Use dynamic variables to make your updates flexible.
- ❌ Don’t use broad query fields (like just
status="pending") unless you intend to update MANY records at once. - ❌ Don’t overwrite critical data without a backup or log.
- ❌ Don’t ignore the
updatedCount— if it's 0, nothing happened.
Common Errors
Successfully updated 0 record(s)WarningOptionalTable not foundErrorOptionalMissing required fieldErrorOptionalConnection timeoutErrorOptionalExample Workflow Integration
Use Case 1: User Profile Update
Update user details after a form submission.
- Form Submission: User submits new details.
- Data Validation: Checks if email is valid.
- Update Data Node: Updates the record in
production:userswhereidmatches. - Email Node: Sends confirmation.
Workflow Data Flow:
{{form.user_id}} → {{updateData.query.id}}
{{form.new_email}} → {{updateData.data.email}}
Use Case 2: Order Fulfillment
Automatically mark an order as paid after payment.
- Stripe Trigger: Payment successful event.
- Update Data Node: Find order by
transaction_idand setstatusto "paid". - Slack Node: Notify sales team.
Workflow Data Flow:
{{stripe.transaction_id}} → {{updateData.query.transaction_id}}
"paid" → {{updateData.data.status}}
