Magidoc

getDashboardWidgetData
Query

Fetches computed live data for chart-builder dashboard widgets (bar, pie, line, numbers, pivot). Also reads configured Buzz AI Time widgets through Report on Time, using the caller's source permissions. Time measures include tracked/billable/nonbillable hours, estimates, timesheets, approvals/leave, resourcing, capacity, holidays, utilization, rates, costs, budgets and margins. Sources remain separate measures; do not add tracked time to timesheet time. Respect returned units, currency, scope and warnings. Time output is viewer-specific, capped at 200 grouped rows, with no raw data. Access: authenticated workspace member with widget access and the underlying report permissions. Errors: inaccessible widget/workspace, unavailable source or metric permission. Returns normalized values plus an optional raw data payload. Use getDashboardWidgets to obtain widgetId and widget type.

Arguments

#

widgetId

ID !
Non-null

workspaceId

ID !
Non-null

includeRaw

maxRows = 1000

Pivot only: max rows returned in normalized table (default 1000).

groupKeys

Pivot table only: the expanded row-group path whose child rows to load (default: top level).

timeMetric

Buzz Time only: refine the saved metric without changing its filters or configuration.

timeGroupBy

Buzz Time only: refine the saved grouping without changing its filters or configuration.

dateRangeOverride

Bar or line chart with a date X axis (not Subscriptions) only: chart this range for this request instead of the saved one. The saved widget does not change. Other widgets return an error.

binByOverride

Bar or line chart with a date X axis (not Subscriptions) only: bin dates by this interval for this request (default: the dateRangeOverride preset's bin, else the saved one). Other widgets return an error.

Response

#

Returns DashboardWidgetDataResponse !.

Example

#