Generate Report
GET/api/advancedsearch/generatereport/:reportPreferenceId
Tier: Public — stable, supported for third-party integration.
Re-runs a saved report preference's stored Advanced Search query and streams the result as a CSV download.
All 21 ReportType members are supported (B11-8) — the same set of service calls
used by the scheduled-report path. The caller must additionally hold Read on the
module the preference's report type maps to (see AdvancedSearchController._reportTypeModuleMap);
this is enforced imperatively inside the action rather than via an attribute.
Request
Responses
- 200
- 400
- 403
A CSV file (application/octet-stream, attachment Export.csv).
No preference with that id exists in the caller's organisation, or its stored ReportType does not parse to a known value.
The caller is authenticated but lacks Read on the module the preference's report type maps to.