<?xml version="1.0" encoding="UTF-8"?>
<rss xmlns:content="http://purl.org/rss/1.0/modules/content/" xmlns:dc="http://purl.org/dc/elements/1.1/" xmlns:rdf="http://www.w3.org/1999/02/22-rdf-syntax-ns#" xmlns:taxo="http://purl.org/rss/1.0/modules/taxonomy/" version="2.0">
  <channel>
    <title>topic Re: Lookup dashboard ID in bundle variables in Data Engineering</title>
    <link>https://community.databricks.com/t5/data-engineering/lookup-dashboard-id-in-bundle-variables/m-p/125034#M47328</link>
    <description>&lt;P&gt;Thanks! That does make sense. When I run `databricks lakeview list` I do get the dashboard I want:&lt;/P&gt;&lt;LI-CODE lang="markup"&gt;[
  {
    "create_time": "2025-06-23T08:09:49.595Z",
    "dashboard_id": "id000000000000000000000",
    "display_name": "My_Dashboard_Name",
    "lifecycle_state": "ACTIVE",
    "warehouse_id": "id0000000000000"
  }
]&lt;/LI-CODE&gt;&lt;P&gt;Will just have to be patient then &lt;span class="lia-unicode-emoji" title=":slightly_smiling_face:"&gt;🙂&lt;/span&gt; thanks!&lt;/P&gt;</description>
    <pubDate>Sun, 13 Jul 2025 09:33:52 GMT</pubDate>
    <dc:creator>ddundovic</dc:creator>
    <dc:date>2025-07-13T09:33:52Z</dc:date>
    <item>
      <title>Lookup dashboard ID in bundle variables</title>
      <link>https://community.databricks.com/t5/data-engineering/lookup-dashboard-id-in-bundle-variables/m-p/125032#M47326</link>
      <description>&lt;P&gt;Hi all,&lt;/P&gt;&lt;P&gt;I have an asset bundle that contains the following dashboard_task:&lt;/P&gt;&lt;LI-CODE lang="markup"&gt;resources:
  jobs:
    my_job:
      name: my_job_name

      tasks:
        - task_key: refresh_my_dashboard
          dashboard_task:
            dashboard_id: ${var.my_dashboard_id}&lt;/LI-CODE&gt;&lt;P&gt;Here I would like to use the `my_dashboard_id` variable, so that it automatically substitutes the ID of the dashboard when deployed on different workspaces. So in my `databricks.yml` file, at bundle level, I have the following variables mapping:&lt;/P&gt;&lt;LI-CODE lang="markup"&gt;variables:
  my_dashboard_id:
    lookup:
      dashboard: My_Dashboard_Name&lt;/LI-CODE&gt;&lt;P&gt;&amp;nbsp;However, this returns an error during bundle validation:&lt;/P&gt;&lt;LI-CODE lang="markup"&gt;Error: failed to resolve dashboard: My_Dashboard_Name, err: Dashboard named 'My_Dashboard_Name' does not exist&lt;/LI-CODE&gt;&lt;P&gt;I am certain that the dashboard exists and that I have the necessary permissions.&lt;/P&gt;&lt;P&gt;Furthermore, when I run `databricks dashboards list`, no dashboards are found. I saw in the&amp;nbsp;&lt;A href="https://docs.databricks.com/aws/en/dev-tools/cli/commands#dashboard-commands" target="_self"&gt;databricks cli&lt;/A&gt;&amp;nbsp;documentation that `databricks dashboards` are commands for modifying legacy dashboards. This would explain why no dashboards are found when I run that. Is it possible that the lookup in the bundle configuration also looks for legacy dashboards?&lt;/P&gt;&lt;P&gt;Any help with getting this work would be much appreciated. Thanks!&amp;nbsp;&lt;BR /&gt;&lt;BR /&gt;&lt;/P&gt;</description>
      <pubDate>Sun, 13 Jul 2025 08:17:39 GMT</pubDate>
      <guid>https://community.databricks.com/t5/data-engineering/lookup-dashboard-id-in-bundle-variables/m-p/125032#M47326</guid>
      <dc:creator>ddundovic</dc:creator>
      <dc:date>2025-07-13T08:17:39Z</dc:date>
    </item>
    <item>
      <title>Re: Lookup dashboard ID in bundle variables</title>
      <link>https://community.databricks.com/t5/data-engineering/lookup-dashboard-id-in-bundle-variables/m-p/125033#M47327</link>
      <description>&lt;P&gt;You're right to be confused, what's happening is that the dashboard lookup in your bundle only works with legacy dashboards, not the newer Lakeview dashboards. That’s why the lookup fails and databricks dashboards list comes up empty. Unfortunately&lt;A href="https://calculadoradehoras.io/" target="_self"&gt;,&lt;/A&gt; the bundle system doesn’t yet support looking up Lakeview dashboards by name. For now, the best workaround is to manually grab the dashboard ID from the Databricks UI or API and pass it through your .env file or with a --var flag when deploying. Hopefully, full support will come in a future update!&lt;/P&gt;</description>
      <pubDate>Sun, 13 Jul 2025 09:28:25 GMT</pubDate>
      <guid>https://community.databricks.com/t5/data-engineering/lookup-dashboard-id-in-bundle-variables/m-p/125033#M47327</guid>
      <dc:creator>jhonnmick</dc:creator>
      <dc:date>2025-07-13T09:28:25Z</dc:date>
    </item>
    <item>
      <title>Re: Lookup dashboard ID in bundle variables</title>
      <link>https://community.databricks.com/t5/data-engineering/lookup-dashboard-id-in-bundle-variables/m-p/125034#M47328</link>
      <description>&lt;P&gt;Thanks! That does make sense. When I run `databricks lakeview list` I do get the dashboard I want:&lt;/P&gt;&lt;LI-CODE lang="markup"&gt;[
  {
    "create_time": "2025-06-23T08:09:49.595Z",
    "dashboard_id": "id000000000000000000000",
    "display_name": "My_Dashboard_Name",
    "lifecycle_state": "ACTIVE",
    "warehouse_id": "id0000000000000"
  }
]&lt;/LI-CODE&gt;&lt;P&gt;Will just have to be patient then &lt;span class="lia-unicode-emoji" title=":slightly_smiling_face:"&gt;🙂&lt;/span&gt; thanks!&lt;/P&gt;</description>
      <pubDate>Sun, 13 Jul 2025 09:33:52 GMT</pubDate>
      <guid>https://community.databricks.com/t5/data-engineering/lookup-dashboard-id-in-bundle-variables/m-p/125034#M47328</guid>
      <dc:creator>ddundovic</dc:creator>
      <dc:date>2025-07-13T09:33:52Z</dc:date>
    </item>
  </channel>
</rss>

