Dashboard defines a folder-based Salesforce dashboard that combines report visualizations and other components into a view of business metrics. It controls whose data viewers see, component layout, dashboard filters, presentation, and navigation when users click components. The source reports remain separate Report assets; the component definitions inside a dashboard are contained parts of the Dashboard asset, not independently deployable dashboards.
Key Elements
Some elements below belong to components or other structures contained within the dashboard rather than to the dashboard's top level.
| Element | What the Element Controls |
|---|---|
fullName, title, folderName
|
Deployment identity, display title, and containing folder. Manifest members use FolderDeveloperName/DashboardDeveloperName, not display titles. fullName is required for create, update, and delete operations. |
dashboardType |
Data-viewing perspective. Allowed values are SpecifiedUser, LoggedInUser, and MyTeamUser. |
runningUser |
The username whose role and sharing settings determine the data shown in the specified-user model. It is not a User record ID. |
isGridLayout, dashboardGridLayout
|
Selects the Lightning Experience grid representation and defines its components, column count, and row height. |
leftSection, middleSection, rightSection
|
Contain components in the section-based representation. Each section's columnSize can be Medium, Narrow, or Wide. |
componentType |
Selects the component's rendering type. Examples include Bar, Metric, Table, FlexTable, Image, RichText, LightningWebComponent, and VisualforcePage. Not every component uses a report. |
report, useReportChart
|
Identifies the source report and whether its chart overrides the dashboard component's own chart settings. |
groupingColumn, chartSummary
|
Defines the grouping and summarized data for a component's own chart. Column identifiers must be interpreted in the source report's context. |
dashboardFilters |
Defines dashboard filter labels and selectable options through name and dashboardFilterOptions. |
dashboardFilterColumns |
Maps dashboard filters to report column codes for each report-based component. |
operator, values
|
Defines each filter option's comparison and operands. between requires two values entries; its lower bound is inclusive and its upper bound is exclusive. Other documented operators take one operand. |
flexComponentProperties, dashboardTableColumn
|
Defines Lightning table columns and sorting for FlexTable, or customized columns for Table, respectively. |
useReportTableSetting |
Within flexComponentProperties, permits importing report table settings when true. This is separate from the chart override controlled by useReportChart. |
groupingSorts, inheritedReportGroupingSort
|
Stores sorting at each grouping level. inheritedReportGroupingSort is a string-valued setting whose documented true value selects the underlying report's order. |
drillDownUrl, drillEnabled, drillToDetailEnabled
|
Controls click navigation. drillDownUrl overrides both other settings; drillEnabled overrides drillToDetailEnabled. |
Behavior and Constraints
Data visibility and running identity
dashboardType determines how to interpret the dashboard's viewing perspective:
-
SpecifiedUser: All viewers see data at the access level of the user named inrunningUser, regardless of their own security settings. -
LoggedInUser: Each viewer sees data according to that viewer's access level. -
MyTeamUser: Managers can choose a perspective associated with subordinates in the role hierarchy.
runningUser stores a username, not a User record ID or an email-address lookup, even when the username looks like an email address. owner identifies the dashboard's creator, while dashboardResultRunningUser identifies the user currently accessing the dashboard. Neither replaces runningUser.
A SpecifiedUser dashboard can expose information beyond a viewer's own record access. Folder visibility therefore controls an important part of its audience. Dashboard filters select data for analysis; they do not replace an appropriate running identity and folder audience.
External-user access can also depend on prerequisites outside this metadata. The Customer Community case under Reported Issues shows why enabling tabs alone may not resolve access.
Grid and section layouts
With isGridLayout=true, dashboardGridLayout contains dashboardGridComponents. Each grid entry wraps a dashboardComponent and positions it with rowIndex and columnIndex. Its rowSpan and colSpan set its height and width in grid cells. numberOfColumns defines the grid width, and rowHeight defines each row's height in pixels.
Grid dashboards can have more than three columns, and components can span multiple rows and columns. The section-based representation instead contains components within leftSection, middleSection, and rightSection.
Dependencies can occur in either representation. Inspecting only section components can miss reports, Visualforce pages, and fields used by a grid dashboard.
Report-driven presentation and sorting
When useReportChart=true, the source report's chart settings override chart settings defined on the dashboard component. Changing a report chart can therefore change dashboard presentation without a change to the Dashboard metadata.
For a component's own chart, groupingColumn selects the grouping field and chartSummary selects summarized data. Grouped components store sort information at grouping levels rather than relying only on component sortBy. For grouping sorts, sortOrder uses Ascending or Descending. A grouping's sortColumn identifies an aggregate when sorting by an aggregate; it is null when sorting by the grouping's own value.
FlexTable uses flexComponentProperties for Lightning table columns and sorting. Its flexTableColumn.type values are Details, Aggregates, and Grouping. Table uses dashboardTableColumn; only one column per table can carry the table's sort setting.
useReportTableSetting=true permits importing report table settings into a Lightning table component. Do not treat it as the same explicit chart override provided by useReportChart.
Filters and report-column mappings
dashboardFilters defines the filters and their selectable options, but the field binding is component-specific. Each report-based component in a filtered dashboard must have dashboardFilterColumns identifying the report columns to filter. The same logical filter can map to different column codes in different reports.
Report column codes are not necessarily raw field API names. Interpret filter mappings, chart summaries, and table definitions in the context of their source reports. Values can identify standard report fields or summaries such as RowCount, not only custom fields.
Filter option operators are equals, notEqual, lessThan, greaterThan, lessOrEqual, greaterOrEqual, contains, notContain, startsWith, includes, excludes, and between. For between, supply two values entries: the lower value is included and the upper value is excluded. This boundary behavior applies when interpreting date, numeric, and other range selections.
Matching field names and data types do not establish cross-report filter compatibility. The multi-object filtering case under Reported Issues describes a scenario where same-named fields were not offered as equivalent filter fields.
Click navigation precedence
- If present,
drillDownUrlsends users to the specified URL and overridesdrillEnabledanddrillToDetailEnabled. - Without that URL override,
drillEnabled=falseopens the full source report, whiledrillEnabled=trueopens the source report filtered by the clicked element. A false value does not disable clicking. -
drillEnabledtakes precedence overdrillToDetailEnabled, which otherwise supports navigation to record detail from applicable chart or table entries.
Deployment and Retrieval
Dashboard is folder-qualified metadata. In package.xml, identify a dashboard as FolderDeveloperName/DashboardDeveloperName, such as MyDBFolder/MyDBName. Use developer names, not dashboard titles. fullName must be specified when creating, updating, or deleting a dashboard. Metadata API files reside in the dashboards directory and use the .dashboard extension.
Dashboard does not support the * wildcard in package.xml. Folder discovery uses listMetadata() with DashboardFolder. describeMetadata() returns Dashboard with inFolder=true, rather than returning DashboardFolder as a separate type. Retrieval must ultimately identify explicit dashboard members.
Do not reconstruct a dashboard's developer name from its title. A generated developer name can be unrelated to the title. The reported file-renaming operation described below created a dashboard under a different identity; it was not an assured in-place rename.
When a deployed dashboard has no runningUser, or that value does not correspond to a valid user, the documented behavior is to populate it with the deploying user's username. This can change the dashboard's data perspective without changing its reports or filters.
Change-set validation has also been reported to fail on username mismatches instead of silently substituting a user. Treat the deployment mechanism as part of the diagnosis. Changing to LoggedInUser is not a neutral deployment workaround because it changes whose data viewers see.
Deleting a dashboard may also leave a lifecycle issue to resolve: the dynamic-dashboard limit report below describes deleted dashboards retained in the Recycle Bin continuing to block another save.
Relationships
Impact analysis includes both the reports, fields, and pages used inside the dashboard and the metadata that refers to the dashboard itself. Component references can appear in either grid or section layouts.
References
-
ApexPage:page. -
CustomField:column,groupingColumn,reportColumn. Thecolumnelements occur in different scopes, including chart summaries, dashboard filter mappings, and table columns. These values can also represent standard report fields or summaries rather than custom fields. -
Report:report. -
Scontrol:scontrol.
Folder association: DashboardFolder is associated through folder-qualified identity and folder discovery. This is separate from the component element references above.
Referenced By
-
FlexiPage:value. -
Layout:devName. -
Translations:name.
These incoming references identify potential consumers or translation entries. They do not by themselves establish a dashboard's live placement, audience, or access.
Documentation Inconsistencies
-
Running identity: The
runningUserdescription says all viewers see identical data, butdashboardTypeexplicitly defines per-viewer and subordinate perspectives. Apply the identical-data statement to the specified-user model, not to every dashboard type. -
Deployment identity: Some API prose describes
fullNameand filenames using dashboard titles. The explicit manifest rule requires folder and dashboard developer names. -
Grid element name: The field definition exposes
dashboardGridLayout, while one Lightning dashboard XML example usesgridLayout. These names differ in the documentation.
Reported Issues
-
Change-set validation can fail because the running-user username does not match a destination user. A 2013 discussion reported dashboard validation failures involving sandbox-suffixed usernames, even though the related reports and folders deployed. The reference was stored by username, not User ID or email address. This is a diagnostic for that deployment path, not proof that the documented deploying-user fallback behaves identically in every mechanism. Switching to
LoggedInUserchanges data visibility. Running-user deployment discussion. -
Enabling Reports and Dashboards tabs may not make them accessible to an external user. In a 2022 Experience Cloud discussion, a Customer Community user still could not access reports or dashboards after tab access was enabled. The answer attributed the problem to that license's lack of Reports access. Treat this as a reported licensing diagnostic, not a
dashboardTypesetting. Customer Community access discussion. - A dashboard's developer name may be unrelated to its display title. A 2023 discussion reported a generated developer name for a dashboard with a readable title. The answer described retrieving it, changing the filename, and redeploying to create a new dashboard with the desired developer name. Treat that operation as creation under a different identity, not an assured in-place rename. Dashboard developer-name discussion.
- Same-named, same-typed fields may not appear as equivalent dashboard filter fields across reports. A 2023 discussion involving reports on several objects reported this for text and picklist fields. The answer described a workaround using formula fields that mapped categories to corresponding dates on each object, adding those fields to the reports, and mapping the dashboard filter to them. Filter labels hid the date encoding on the dashboard, but users opening the reports could see the date fields. This is a reported scenario and workaround, not a universal prohibition on cross-object filters. Cross-report filter discussion.
- A refresh error can originate in the source report or the running user's field access, rather than the dashboard layout. A 2015 discussion of "This report cannot be used as the source for this component" identified appropriate groupings for summary or matrix reports, at least read access to the summary or grouping field for the running user of a summary report, and a row limit plus Dashboard Settings for the tabular-report scenario described. It also noted that modifying a previously working report could break its dashboard component. These are conditional diagnostics, not a requirement that every component use grouped data. Dashboard refresh-error discussion.
- Deleting dynamic dashboards may not immediately clear a limit error. A discussion started in 2015 and updated in 2017 reported that deleted dashboards retained in the Recycle Bin continued to prevent saving another dashboard configured to run as the logged-in user. Removing those deleted dashboards from the Recycle Bin was the reported resolution. The discussion does not establish a numeric quota. Dynamic-dashboard limit discussion.
Common Questions
How do I retrieve all dashboards with package.xml?
You cannot use * for Dashboard. Discover folders with listMetadata() using DashboardFolder, then populate the manifest with explicit FolderDeveloperName/DashboardDeveloperName members.
What happens if runningUser is missing during deployment?
The documented behavior is to populate it with the deploying user's username. However, change-set validation has also been reported to fail on username mismatches, so do not assume every deployment path silently substitutes a user.
Why do users see data they cannot access directly?
A SpecifiedUser dashboard shows data at the access level of its runningUser, regardless of each viewer's own security settings. Check that identity and the dashboard's folder audience; dashboard filters do not replace those controls.
Why did my dashboard chart change without a Dashboard metadata change?
If useReportChart=true, the source report's chart overrides the dashboard component's chart settings. A change to that report chart can therefore change the dashboard's presentation.
Does drillEnabled=false disable clicks on a dashboard component?
No. It opens the full source report rather than a report filtered by the clicked element. drillDownUrl, when present, overrides that behavior and sends users to its URL.