Report
object type
A Report: a saved report of ONE of two kinds. A built definition: a validated ReportSpec (the reportRun grammar verbatim: a plan + columns, or a plan + groupBy/measures, an optional sort) kept as JSON text (specJson, at most 12288 characters). A saved run of a ready-made report: the catalogue key (catalogKey — see reportCatalog) with the parameters as named (paramsJson, at most 1024 characters — the period unresolved, so a saved “this month” is each run's month and “me” is whoever runs it). Both carry their words (at most 4096 characters) and the family the rows are made of (terminalFamily); exactly one kind, never both, never neither. A Report stores NO result: every run executes as the runner under the runner's own rights through reportRun(reportId) (rows on screen, now) or startExportJob(reportId, format) (a file, in the background — a saved run exports only where its report is a list); a built spec is re-validated at every run (a roster that moved since the save refuses in the teaching voice — edit the spec), a saved run's parameters are re-bound at every run (a retired report or parameters that no longer bind refuse naming the record — edit its params); only an active report runs. The definition is the question, never an answer. NOT searchable.
Fields
| Field | Type | Notes |
|---|---|---|
id | ID ID! | The record’s id — a UUID the platform assigned when the record was created; every reference to this record uses it. |
sysId | String String! | The human-readable id, shaped like RO-… — stable for the record’s life. |
type | String String! | The kind of record — always Report here. |
caption | String String! | The record’s display name — what people see it called. |
status | String String! | The record’s current state — one of active, inactive or doomed. |
parentId | ID ID! | The parent org group; for a Report parentId === rootId. |
rootId | ID ID! | The id of your organization group — every record of yours carries the same one. |
createdAt | String String! | When the record was created, as a UTC timestamp. |
updatedAt | String String! | When the record last changed, as a UTC timestamp. |
revisionNum | Int Int! | How many times this record has been edited; the first save is 0. |
revision | ID ID! | The id of the record’s current edit — send it back with a change so an edit made in the meantime is refused instead of overwritten. |
refCaptions | RefCaption [RefCaption!]! | The captions of the records this one refers to, composed for you — one row per referenced id; see RefCaption. |
specJson | String | A built definition's validated ReportSpec as JSON text (the planJson idiom — the receiver parses; at most 12288 characters); replaced wholesale by updateReport(spec) and re-validated at every run. Null on a saved run of a ready-made report. |
catalogKey | String | A saved run’s ready-made report — the catalogue key (reportCatalog lists them), fixed at birth; null on a built definition. |
paramsJson | String | A saved run's parameters as JSON text (the ReportParamsInput fields as named — the period unresolved; at most 1024 characters); replaced wholesale by updateReport(params) and re-bound at every run; null on a built definition. |
words | String String! | The report in words (describeReport for a built definition; the ready-made report's title with its saved choices for a saved run; at most 4096 characters — cut with a trailing … past it) — derived at write; what the list shows before anything runs. |
terminalFamily | String String! | The family the rows or groups are made of (a built definition: the plan’s last hop’s family, or the start’s; a saved run: the family the ready-made report answers) — derived at write, never caller-supplied. |
description | String | What the report is for — a sentence or three (at most 512 characters); optional, set-only. |