---
title: Dashboard task for jobs
description: Configure a dashboard task in a Lakeflow Job to refresh a published Databricks dashboard as part of a workflow.
canonical_url: https://docs.databricks.com/aws/en/jobs/tasks/dashboard
---

# Dashboard task for jobs

Use a dashboard task to refresh results on a published Databricks dashboard as part of a job.

## Requirements

* The dashboard must be published and accessible to the user configuring the job.
* You must have at least CAN VIEW access to the dashboard you want to deploy.

## <a id="configure-a-dashboard-task" />Configure a dashboard task

> [!NOTE]
>
> The jobs UI displays options dynamically based on other configured settings.

To begin the flow to configure a `Dashboard` task:

1. Go to the **Tasks** tab in the Jobs UI. For general instructions, see [Create or configure a task](https://docs.databricks.com/aws/en/jobs/configure-task.md#basics).

2. Enter a **Task name**.

3. In the **Type** drop-down menu, select `Dashboard`.

4. In the **Dashboard** drop-down menu, select the dashboard that you want to update.

5. (Optional) Select the SQL warehouse used to refresh the dashboard. If not specified, the task uses the dashboard's default warehouse.

   > [!NOTE]
   >
   > You must use a serverless or pro SQL warehouse for dashboard tasks.

6. In the **Subscribers** drop-down, select the users and notification destinations to receive email updates when the dashboard is refreshed. This list is separate from any subscribers configured through the Dashboards UI or API.

7. (Optional) To pre-apply filter values when the dashboard refreshes, configure **Dashboard filters**:

   1. Click **Add filter**.
   2. In the **Filter** drop-down, select a global or page-level filter widget from the dashboard.
   3. Enter a value for the filter.
   4. Repeat for each additional filter you want to set.

   > [!NOTE]
   >
   > Dataset parameters can't be set directly in the task. To use a dataset parameter, first attach it to a dashboard filter widget on the dashboard canvas, then set that filter's value here.

   If a dashboard filter's **URL Identifier** matches a job-level parameter key, the task automatically applies that parameter's value to the filter. See [Parameterize jobs](https://docs.databricks.com/aws/en/jobs/parameters.md).

8. (Optional) To control what subscribers receive, configure **Attachments**:

   * **Include pages**: Select which dashboard pages to include in the PDF attachment. Pages are attached in the selected order. If you don't select any pages, only the first page is included. You can select up to 15 pages. Global filter pages aren't available for selection.
   * **Include data**: Select the widgets whose underlying data you want to attach as separate files, then choose an export format: CSV, TSV, or Excel. You can attach data from up to 5 widgets. To also attach the dashboard's applied filter values as a separate file, select **Current filter selections**. You must select at least one widget before you can include the filter values.

   Attachments work the same way as data attachments in dashboard schedules and subscriptions. For supported widgets, applied filters, and the size limits that apply, see [Data attachments](https://docs.databricks.com/aws/en/dashboards/share/schedule-subscribe.md#email-attachments).

9. (Optional) To configure **Duration threshold**, **Notifications**, or **Retries**, see [ Advanced task settings](https://docs.databricks.com/aws/en/jobs/configure-task.md#advanced).

10. Click **Save task**.

To edit, clone, disable, or delete this task, see [Configure and edit tasks in Lakeflow Jobs](https://docs.databricks.com/aws/en/jobs/configure-task.md).

## Dashboard execution and access

Dashboard permissions and caching behavior depend on how the dashboard is published:

* For dashboards published with shared data permissions, viewers access data and compute according to the dashboard publisher's credentials.
* For dashboards published without shared data permissions, the identity defined in the job's **Run as** setting is used to refresh the dashboard. The **Run as** setting defaults to the job owner. To change the **Run as** identity, see [Configure the Run as user for job runs](https://docs.databricks.com/aws/en/jobs/privileges.md#run-as). Viewers use their own data and compute permissions to view the dashboard output and can't view refreshed results generated by the **Run as** identity.

> [!NOTE]
>
> Dashboards with shared data permissions are always updated using the publisher's credentials. You can't use the **Run as** setting in the Jobs UI to change the **Run as** identity.

To learn more about publish settings for dashboards, see [Publish a dashboard](https://docs.databricks.com/aws/en/dashboards/share/share.md#publish-dashboard). To learn more about caching behavior for each access type, see [Dataset optimization and caching](https://docs.databricks.com/aws/en/dashboards/caching.md).

## <a id="additional-resources" />Additional resources

* [Dashboard task](https://docs.databricks.com/aws/en/dev-tools/bundles/job-task-types.md#dashboard-task): Define a dashboard task as code with Declarative Automation Bundles.
* [Publish a dashboard](https://docs.databricks.com/aws/en/dashboards/share/share.md#publish-dashboard): Publish the dashboard.
* [Parameterize jobs](https://docs.databricks.com/aws/en/jobs/parameters.md): Pass parameters to the task.
