SQL
Learn how to use the SQL action item to build your workflows
Last updated
Learn how to use the SQL action item to build your workflows
Last updated
The SQL Action in DBSync Cloud Workflow enables you to interact with databases directly within your integration flows. Use it to write custom SQL queries that retrieve, insert, update, or delete records in supported databases — whether cloud-based or on-premise.
Fetch records from a database to feed into the data stream.
Update records dynamically based on workflow logic.
Insert new data from integrated apps.
Delete outdated or unnecessary records.
Works with any connected database (e.g., MySQL, PostgreSQL, SQL Server, Oracle).
Supports dynamic queries using Fx-enabled variables.
Real-time query results or update counts.
Customizable batch size for optimized performance.
Code editor with SQL syntax highlighting.
Open the Cloud Workflow Development Studio.
Drag and drop the SQL Action into your flow.
Choose a database from the Data Source dropdown.
Only adapters of type DatabaseAdapter
will be shown.
Use the SQL editor (with CodeMirror) to build your query.
You can insert dynamic fields using the Fx Panel (right-hand side).
SELECT
Tabular output in data preview
INSERT
Count of rows inserted
UPDATE
Count of rows updated
DELETE
Count of rows deleted
Use {{...}}
to reference dynamic variables in your query.
This pulls orders with a status provided by an earlier step in the workflow.
Click Run to preview the results.
SELECT → Displays data in tabular format.
INSERT/UPDATE/DELETE → Shows how many records were affected.
Use Query Preview before saving changes.
Sanitize dynamic inputs using filters/validation.
Keep queries optimized to avoid long-running transactions.
Leverage batch control in high-volume flows.
No results returned
Filters too narrow
Check query logic and variable values
Column not found
Column name mismatch
Check column names in database
Access denied / auth error
Connector credentials invalid
Re-authenticate the connector
The SQL Action is a powerful addition to your DBSync Cloud Workflow, enabling direct and dynamic access to your databases within any flow. Use it to automate data syncing, enrichment, and control—all from a single visual interface.