run-adhoc-report
Generate custom BambooHR reports by submitting a field list or saved preset. Returns JSON or CSV, with an option to include terminated employees.
Instructions
Run an ad-hoc custom report by posting a field list to BambooHR. Use either a saved preset (presetName) or pass an explicit fields array. Returns JSON unless format=CSV. Set onlyCurrent=false to include terminated employees.
Input Schema
| Name | Required | Description | Default |
|---|---|---|---|
| title | No | Report title (defaults to preset title or "Ad-hoc Report") | |
| fields | No | Explicit list of BambooHR field IDs or aliases (e.g. firstName, 4670) | |
| format | No | Output format: JSON (default) or CSV | |
| presetName | No | Saved preset name. Available: finance-close | |
| onlyCurrent | No | Limit to current/active employees only (default: true) |