<?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: Using the dashboard variable in a code block in Dashboarding</title>
    <link>https://community.dynatrace.com/t5/Dashboarding/Use-the-Dashboard-variable-in-a-code-block/m-p/279514#M5162</link>
    <description>&lt;P&gt;Hello&lt;BR /&gt;Yes it is possible the same way you use it in DQL. The exact syntax could depend on the type of variable and where it is used in the code. Here's a simple example taken from the &lt;A href="https://github.com/dynatrace-oss/CustomerSuccess" target="_self"&gt;Dynatrace Tenant Review&lt;/A&gt; dashboard:&lt;/P&gt;&lt;P&gt;&lt;span class="lia-inline-image-display-wrapper lia-image-align-inline" image-alt="GerardJ_0-1750072842786.png" style="width: 400px;"&gt;&lt;img src="https://community.dynatrace.com/t5/image/serverpage/image-id/28524i1FCC033A385F4E48/image-size/medium?v=v2&amp;amp;px=400" role="button" title="GerardJ_0-1750072842786.png" alt="GerardJ_0-1750072842786.png" /&gt;&lt;/span&gt;&lt;/P&gt;&lt;P&gt;&amp;nbsp;&lt;/P&gt;&lt;P&gt;&lt;BR /&gt;&lt;BR /&gt;&lt;/P&gt;</description>
    <pubDate>Mon, 16 Jun 2025 11:21:31 GMT</pubDate>
    <dc:creator>GerardJ</dc:creator>
    <dc:date>2025-06-16T11:21:31Z</dc:date>
    <item>
      <title>Use the Dashboard variable in a code block</title>
      <link>https://community.dynatrace.com/t5/Dashboarding/Use-the-Dashboard-variable-in-a-code-block/m-p/279510#M5160</link>
      <description>&lt;P&gt;I would like to use a dashboard variable in a code block, but I can't seem find any documentation on how to do this. Is there even a way to do this?&lt;/P&gt;
&lt;P&gt;&amp;nbsp;&lt;/P&gt;</description>
      <pubDate>Mon, 01 Dec 2025 13:59:31 GMT</pubDate>
      <guid>https://community.dynatrace.com/t5/Dashboarding/Use-the-Dashboard-variable-in-a-code-block/m-p/279510#M5160</guid>
      <dc:creator>jmarbaix</dc:creator>
      <dc:date>2025-12-01T13:59:31Z</dc:date>
    </item>
    <item>
      <title>Re: Using the dashboard variable in a code block</title>
      <link>https://community.dynatrace.com/t5/Dashboarding/Use-the-Dashboard-variable-in-a-code-block/m-p/279512#M5161</link>
      <description>&lt;P&gt;Found the solution, you just have to use the $-notation.&lt;/P&gt;</description>
      <pubDate>Mon, 16 Jun 2025 11:18:22 GMT</pubDate>
      <guid>https://community.dynatrace.com/t5/Dashboarding/Use-the-Dashboard-variable-in-a-code-block/m-p/279512#M5161</guid>
      <dc:creator>jmarbaix</dc:creator>
      <dc:date>2025-06-16T11:18:22Z</dc:date>
    </item>
    <item>
      <title>Re: Using the dashboard variable in a code block</title>
      <link>https://community.dynatrace.com/t5/Dashboarding/Use-the-Dashboard-variable-in-a-code-block/m-p/279514#M5162</link>
      <description>&lt;P&gt;Hello&lt;BR /&gt;Yes it is possible the same way you use it in DQL. The exact syntax could depend on the type of variable and where it is used in the code. Here's a simple example taken from the &lt;A href="https://github.com/dynatrace-oss/CustomerSuccess" target="_self"&gt;Dynatrace Tenant Review&lt;/A&gt; dashboard:&lt;/P&gt;&lt;P&gt;&lt;span class="lia-inline-image-display-wrapper lia-image-align-inline" image-alt="GerardJ_0-1750072842786.png" style="width: 400px;"&gt;&lt;img src="https://community.dynatrace.com/t5/image/serverpage/image-id/28524i1FCC033A385F4E48/image-size/medium?v=v2&amp;amp;px=400" role="button" title="GerardJ_0-1750072842786.png" alt="GerardJ_0-1750072842786.png" /&gt;&lt;/span&gt;&lt;/P&gt;&lt;P&gt;&amp;nbsp;&lt;/P&gt;&lt;P&gt;&lt;BR /&gt;&lt;BR /&gt;&lt;/P&gt;</description>
      <pubDate>Mon, 16 Jun 2025 11:21:31 GMT</pubDate>
      <guid>https://community.dynatrace.com/t5/Dashboarding/Use-the-Dashboard-variable-in-a-code-block/m-p/279514#M5162</guid>
      <dc:creator>GerardJ</dc:creator>
      <dc:date>2025-06-16T11:21:31Z</dc:date>
    </item>
  </channel>
</rss>

