Skip to main content

Query an Excel using SQL

Query an Excel using SQL. Wrk Action uses SQLite syntax. Note: Only basic SELECT and JOIN statements are supported. Please refer to the documentation for more details on configuration.

Application

  • Microsoft Excel

Inputs (what you have)

NameDescriptionData TypeRequired?Example
Excel fileExcel file you would like to query using SQLFileYes
SQL queryA SQL query to perform on the provided Excel. Example: Select * from Sheet2Text (Long)YesSelect * from Excel
Columns do not have headers?If selected, the headers will be referred to as Col1, Col2, etc. All sheetsTrue/FalseNo
Use sheet index?Set to true to use sheet index (Sheet2) for table names instead of sheet nameTrue/FalseNo
Output filenameOptional custom filename for the output Excel fileText(Long)Nosample.xlsx

Outputs (what you get)

NameDescriptionData TypeRequired?Example
Output ExcelOutput Excel fileFileYes
Output JSONJSON output of the query resultText (Long)No
Total number of rowsThe total number of rows in the output ExcelNumberNo

Outcomes

NameDescription
SuccessThis status is selected if the job has successfully completed.

Requirements

  • N/A