# Dashboard Markdown with a variable to substitute the tenant

**URL:** <https://community.dynatrace.com/t/dashboard-markdown-with-a-variable-to-substitute-the-tenant/52588>\
**Category:** Dashboarding\
**Tags:** latest-dynatrace, dashboards\
**Created:** [July 22, 2025, 10:58am UTC](https://community.dynatrace.com/t/dashboard-markdown-with-a-variable-to-substitute-the-tenant/52588 "2025-07-22T10:58:33Z")\
**Posts on this page:** 3\
**Page:** 1

<div class="post-metadata">

**Author:** ![csb](https://avatars.discourse-cdn.com/v4/letter/c/b5a626/32.png) [@csb](https://community.dynatrace.com/u/csb)\
**Post date:** [July 22, 2025, 10:58am UTC](https://community.dynatrace.com/t/dashboard-markdown-with-a-variable-to-substitute-the-tenant/52588/1 "2025-07-22T10:58:33Z")

</div>

Hi everyone,

I have a variable that holds the tenant ID $TenantID

Is there a way to link to a different section in Dynatrace such as&nbsp;https://{environmentid}.apps.dynatrace.com/ui/apps/dynatrace.infraops/explorer?perspective=Default&nbsp;using a markup tile?

I can do it using code, then visualize it as a table and column = markdown, but it doesn’t look good.

What am I missing?

export default async function () {  
const tenant =$TenantID;&nbsp;  
const url = `https://{environmentid}.apps.dynatrace.com/ui/apps/dynatrace.infraops/explorer?perspective=Default`;  
return “# [Infrastructure Overview](https://{environmentid}.apps.dynatrace.com/ui/apps/dynatrace.infraops/explorer?perspective=Default)”;  
}

 ![DT Markdown.gif](https://global.discourse-cdn.com/dynatrace/original/3X/e/a/eabd9b7561536c63e8b5a671f1e1d5cb6c06e7e7.gif)

---

<div class="post-metadata">

**Author:** ![MichalGebacki](https://dub1.discourse-cdn.com/dynatrace/user_avatar/community.dynatrace.com/michalgebacki/32/41585_2.png) [@MichalGebacki](https://community.dynatrace.com/u/MichalGebacki)\
**Post date:** [November 28, 2025, 7:19am UTC](https://community.dynatrace.com/t/dashboard-markdown-with-a-variable-to-substitute-the-tenant/52588/2 "2025-11-28T07:19:00Z")

</div>

Hello,&nbsp;[@csb](https://community.dynatrace.com/user/92753)!

Are these documentation pages helping to address your questions?

**[Add a variable to a dashboard](https://docs.dynatrace.com/docs/analyze-explore-automate/dashboards-and-notebooks/dashboards-new/components/dashboard-component-variable)**&nbsp;and [**Add Markdown to dashboard**](https://docs.dynatrace.com/docs/analyze-explore-automate/dashboards-and-notebooks/dashboards-new/components/dashboard-component-markdown)

Please let us know, thank you in advance!

---

<div class="post-metadata">

**Author:** ![t\_pawlak](https://dub1.discourse-cdn.com/dynatrace/user_avatar/community.dynatrace.com/t_pawlak/32/14991_2.png) [@t\_pawlak](https://community.dynatrace.com/u/t_pawlak)\
**Post date:** [November 28, 2025, 2:43pm UTC](https://community.dynatrace.com/t/dashboard-markdown-with-a-variable-to-substitute-the-tenant/52588/3 "2025-11-28T14:43:47Z")

</div>

Hi,  
The simplest solution: you actually don’t need $TenantID at all

Dynatrace markup tiles support relative URLs, and the current environment ID is automatically inserted by the browser.  
So you can link to InfraOps like this:

```markup
# [Infrastructure Overview](/ui/apps/dynatrace.infraops/explorer?perspective=Default)

```

This will work in any environment because the browser resolves it to:

```markup
https://{environmentid}.apps.dynatrace.com/ui/apps/dynatrace.infraops/explorer?perspective=Default

```

Dynatrace dashboards do not currently support injecting variables like $TenantID into markup, so relative paths are the cleanest and best approach.
