The Data Export Tool supports two query formats: Excel and JSON. Both are compiled to MiniLinq for execution.
For detailed guidance on creating queries, including field mappings, filter examples, and tips, see the User Documentation.
An Excel query is any .xlsx workbook. Each sheet represents one output
table. Columns are grouped as follows:
- Data Source:
formfor form data, orcasefor case data - Filter Name / Filter Value: Paired columns to filter the data
- Field: The destination column name in your output
- Source Field: The JSON path to extract from the form or case
It is recommended to use the Excel format as it is more user-friendly and stable across library versions.
JSON queries represent MiniLinq expressions directly. To get started with JSON, create an Excel query and convert it:
commcare-export --query my-query.xlsx --dump-queryExample query files in both formats are provided in the examples/ directory.
- MiniLinq Reference - Query language documentation
- Output Formats - Available output formats