bw_get_query
Fetch a BW Query's definition: variables, filters, layout, calculated/restricted measures, exceptions, and cells. Outputs compact text or raw JSON, using active version, falling back to inactive.
Instructions
Read a BW Query definition — variables, filter, layout (rows/columns/free characteristics), calculated and restricted measures, exceptions, and cell definitions. Tries the active version first; falls back to the inactive version if not found. format="text" (default): compact human-readable output. format="raw": full parsed JSON.
Input Schema
| Name | Required | Description | Default |
|---|---|---|---|
| format | No | "text" (default): structured human-readable output. "raw": full parsed JSON. | |
| query_name | Yes | Technical name of the query (e.g. "QUERY_NAME"). |