Database: Export query to Excel

Export query results to an Excel file.

Help Centre › Building Processes

Export query results to an Excel file.

Add it to a process

In the process designer, open the Add step tab. Find Export query to Excel under Database › Bulk & Import/Export, or type its name in the search box, and drag it onto the canvas.

Fields

FieldRequiredWhat it does
SQL SELECT queryYesThe SQL query to execute
Output file pathYesThe file path to export the results to
Connection nameYesConnection name
Parameters (JSON array)NoQuery parameters, one per line (value or key=value)
Sheet nameNoThe Excel sheet name to export to Default: Sheet1.

See all Database steps.

Errors

ErrorDescription
Connection not foundNo open connection exists with the specified name
Query errorThe SQL query contains a syntax error or references invalid objects
File write errorUnable to write to the specified file path

Tips

  • Use meaningful sheet names to make the exported file easier to navigate
  • The file path must end in .xlsx for proper Excel format
  • Use SELECT with specific column names and aliases for readable headers

Related functions

Get started

See it working on your own data

Everything documented here ships with the platform – try the document tools free, or have your first automation working in 7 days.