Skip to content

generate

Generate the Inventory report as a file. Runs as a job and returns the result: the download and preview links and the row count. A filter the report refuses fails with the reason.

reports {
inventory {
generate(
columns: [SelectedReportColumnInput!]!
contentType: ReportContentType
filter: InventoryFilterInput!
): ReportGenerationState
}
}

The report’s columns.

The file format. EXCEL by default.

Which places the report selects.

The state of a report’s generation, and its file when it is ready.