# URLs in New Dashboards

**URL:** <https://community.dynatrace.com/t/urls-in-new-dashboards/42840>\
**Category:** Dashboarding\
**Tags:** latest-dynatrace, notebooks, dashboards\
**Created:** [November 27, 2023, 6:50am UTC](https://community.dynatrace.com/t/urls-in-new-dashboards/42840 "2023-11-27T06:50:50Z")\
**Posts on this page:** 20\
**Page:** 1

<div class="post-metadata">

**Author:** ![AmitChiba](https://dub1.discourse-cdn.com/dynatrace/user_avatar/community.dynatrace.com/amitchiba/32/17623_2.png) [@AmitChiba](https://community.dynatrace.com/u/AmitChiba)\
**Post date:** [November 27, 2023, 6:50am UTC](https://community.dynatrace.com/t/urls-in-new-dashboards/42840/1 "2023-11-27T06:50:50Z")

</div>

Hi,

I am trying to create a dashboard that will contain links to other websites. I know that this can be achieved by using the “markup” selection when defining a new section. But is it possible to do the same with the “code” option? If so, then I do I go about doing this?

---

<div class="post-metadata">

**Author:** ![radek\_jasinski](https://dub1.discourse-cdn.com/dynatrace/user_avatar/community.dynatrace.com/radek_jasinski/32/10432_2.png) [@radek\_jasinski](https://community.dynatrace.com/u/radek_jasinski)\
**Post date:** [November 27, 2023, 8:54am UTC](https://community.dynatrace.com/t/urls-in-new-dashboards/42840/2 "2023-11-27T08:54:54Z")

</div>

Hi&nbsp;[@AmitChiba](https://community.dynatrace.com/user/877)

The Markdown tile is designed for this:

 ![Zrzut ekranu 2023-11-27 o 09.53.01.png](https://global.discourse-cdn.com/dynatrace/original/3X/0/c/0c83a1188dbc89e9d332a11f907fc4ee1e58badd.png)

Example: [link]([https://dynatrace.com](https://dynatrace.com))

Radek

---

<div class="post-metadata">

**Author:** ![AmitChiba](https://dub1.discourse-cdn.com/dynatrace/user_avatar/community.dynatrace.com/amitchiba/32/17623_2.png) [@AmitChiba](https://community.dynatrace.com/u/AmitChiba)\
**Post date:** [November 27, 2023, 9:00am UTC](https://community.dynatrace.com/t/urls-in-new-dashboards/42840/3 "2023-11-27T09:00:02Z")

</div>

Hi, Yes I understand that markdown tiles are built for this purpose, but I have a use case that requires me to extract data from Dynatrace, display this data, together with a URL that will dynamically change based on the value returned. Since the markdown tile cannot be used to query the data from Dynatrace, I have to use the code block for this. Is there any way that I can achieve?

---

<div class="post-metadata">

**Author:** ![radek\_jasinski](https://dub1.discourse-cdn.com/dynatrace/user_avatar/community.dynatrace.com/radek_jasinski/32/10432_2.png) [@radek\_jasinski](https://community.dynatrace.com/u/radek_jasinski)\
**Post date:** [November 27, 2023, 9:07am UTC](https://community.dynatrace.com/t/urls-in-new-dashboards/42840/4 "2023-11-27T09:07:04Z")

</div>

I do not know if such functionality is available. I will check on my environment.

However, I do not exclude the possibility that you may have to report Product Idea.

---

<div class="post-metadata">

**Author:** ![zietho](https://dub1.discourse-cdn.com/dynatrace/user_avatar/community.dynatrace.com/zietho/32/41733_2.png) [@zietho](https://community.dynatrace.com/u/zietho)\
**Post date:** [December 7, 2023, 2:59pm UTC](https://community.dynatrace.com/t/urls-in-new-dashboards/42840/5 "2023-12-07T14:59:32Z")

</div>

What about creating a code-based query.

I have a simple CSV based example here (Example 5):

I defined a variable on top that has two strings

 ![zietho_0-1701961005901.png](https://global.discourse-cdn.com/dynatrace/original/3X/1/8/18a728491c41dfb41cda1ea766f08eea86e230ad.png)

and in the markdown I use the value in both the text as well as in the actual underlying URL.

 ![zietho_1-1701961038524.png](https://global.discourse-cdn.com/dynatrace/original/3X/5/7/57c92976de8bb032d5cf49538a4fcb83120fee7d.png)

[https://wkf10640.apps.dynatrace.com/ui/apps/dynatrace.dashboards/dashboard/30a2fd95-90e8-40d8-8387-d467606e7f1e/tile/13/main#from=now-2h&to=now&vfilter\_docPages=dashbaords-new&vfilter\_statusFromCSV=ALL&vfilter\_statusFromCode=ALL&vfilter\_statusFromQuery=ALL](https://wkf10640.apps.dynatrace.com/ui/apps/dynatrace.dashboards/dashboard/30a2fd95-90e8-40d8-8387-d467606e7f1e/tile/13/main#from=now-2h&to=now&vfilter_docPages=dashbaords-new&vfilter_statusFromCSV=ALL&vfilter_statusFromCode=ALL&vfilter_statusFromQuery=ALL)

---

<div class="post-metadata">

**Author:** ![LawrenceBarratt](https://dub1.discourse-cdn.com/dynatrace/user_avatar/community.dynatrace.com/lawrencebarratt/32/26634_2.png) [@LawrenceBarratt](https://community.dynatrace.com/u/LawrenceBarratt)\
**Post date:** [December 7, 2023, 7:13pm UTC](https://community.dynatrace.com/t/urls-in-new-dashboards/42840/6 "2023-12-07T19:13:23Z")

</div>

Hi [@AmitChiba](https://community.dynatrace.com/user/877)&nbsp;.

Can you elaborate on what links you’d like to populate, and to what condition they would be populated from?

Thank you,

Lawrence

---

<div class="post-metadata">

**Author:** ![AmitChiba](https://dub1.discourse-cdn.com/dynatrace/user_avatar/community.dynatrace.com/amitchiba/32/17623_2.png) [@AmitChiba](https://community.dynatrace.com/u/AmitChiba)\
**Post date:** [December 8, 2023, 8:27am UTC](https://community.dynatrace.com/t/urls-in-new-dashboards/42840/7 "2023-12-08T08:27:08Z")

</div>

Hi&nbsp;[@LawrenceBarratt](https://community.dynatrace.com/user/47736)&nbsp;,

I would like to populate links to an external webpage ideally using the Code block and not the markup block. The reason for this is becuase I am pulling some SLO metrics in Dynatrace, and need to have an associated link to an external application for each of this lines. Here is a sample of what I am trying to achieve

 ![AmitChiba_0-1702023849162.png](https://global.discourse-cdn.com/dynatrace/original/3X/8/0/804169279a2e0fac83d2b293785fbce879d0d336.png)

The issue that I have is that If I specify the link in a column in the table, When click on the link and open, I get the message that I dont have any compatible apps.

The only other way that I think that I can get this to work is by creating an app for this using AppEngine, but this is a mission and a half.

Do you have any other suggestions?

Kind Regards,  
Amit

---

<div class="post-metadata">

**Author:** ![LawrenceBarratt](https://dub1.discourse-cdn.com/dynatrace/user_avatar/community.dynatrace.com/lawrencebarratt/32/26634_2.png) [@LawrenceBarratt](https://community.dynatrace.com/u/LawrenceBarratt)\
**Post date:** [December 8, 2023, 9:24am UTC](https://community.dynatrace.com/t/urls-in-new-dashboards/42840/8 "2023-12-08T09:24:46Z")

</div>

Hi&nbsp;[@AmitChiba](https://community.dynatrace.com/user/877)

I’ve checked and even hardcoding the URL does not open to corresponding webpage due the the screenshots you put above. Can you PM me the JS you are running, removing the links and just putting [Google.com](http://Google.com) for reference?

This works with HostID \> Hosts, ServiceId \> Services etc but the external links do not open on a table.

I have raised a [Dynatrace RFE,](https://community.dynatrace.com/post/231336)&nbsp;but the link opening may be disabled for security reasons, i’ll check internally.

> **[JavaScript runtime | Dynatrace Developer](https://developer.dynatrace.com/develop/reference/javascript-runtime/)**
>
> Reference of available JavaScript objects, WebAPIs, and packages of the SDK for TypeScript to write app functions

Thanks,

Lawrence

---

<div class="post-metadata">

**Author:** ![AmitChiba](https://dub1.discourse-cdn.com/dynatrace/user_avatar/community.dynatrace.com/amitchiba/32/17623_2.png) [@AmitChiba](https://community.dynatrace.com/u/AmitChiba)\
**Post date:** [December 8, 2023, 2:21pm UTC](https://community.dynatrace.com/t/urls-in-new-dashboards/42840/9 "2023-12-08T14:21:11Z")

</div>

Hi&nbsp;[@LawrenceBarratt](https://community.dynatrace.com/user/47736)&nbsp;,

Here is an example of the code and what I am trying to achieve. I believe that you already understand the use case that I have. Many thanks for also raising the RFE.

```javascript
import { serviceLevelObjectivesClient } from "@dynatrace-sdk/client-classic-environment-v2";
import { Markdown } from '@dynatrace/strato-components-preview/content';
export default async function () {

  var slos = [["1f943f42-0462-3d00-b64e-3b045e4489b7","https://www.google.com"],["d473cbc5-6862-3abd-87b1-18da5c1a11d3","https://www.dynatrace.com"]];
  var arr = new Array();
  var nextpage = "Start";
  for (let h = 0; h < slos.length;h++)
  {
      var data = await serviceLevelObjectivesClient.getSlo({evaluate: true,sloSelector: "id("+slos[h][0]+")"});
  for (let i = 0; i < data.slo.length; i++)
    {
    var slometrics = data.slo[i];

    let Basic = new URL(slos[h][1]);
      if (slometrics.errorBudgetBurnRate.sloValue != null){
      arr.push({name: slometrics.name, slo: slometrics.errorBudgetBurnRate.sloValue, "error Budget Variance": slometrics.errorBudget, target: slometrics.target, url: Basic});
      }
    }

  }
  return arr;
}

```

I hope that the above code provides further insight.

Thank you

Kind Regards,

Amit

---

<div class="post-metadata">

**Author:** ![zietho](https://dub1.discourse-cdn.com/dynatrace/user_avatar/community.dynatrace.com/zietho/32/41733_2.png) [@zietho](https://community.dynatrace.com/u/zietho)\
**Post date:** [December 11, 2023, 6:18pm UTC](https://community.dynatrace.com/t/urls-in-new-dashboards/42840/10 "2023-12-11T18:18:26Z")

</div>

This sounds like you want to create and expose dynamic links in a table. Or which visualization would you want to use for showing such links?

---

<div class="post-metadata">

**Author:** ![AmitChiba](https://dub1.discourse-cdn.com/dynatrace/user_avatar/community.dynatrace.com/amitchiba/32/17623_2.png) [@AmitChiba](https://community.dynatrace.com/u/AmitChiba)\
**Post date:** [December 13, 2023, 12:56pm UTC](https://community.dynatrace.com/t/urls-in-new-dashboards/42840/11 "2023-12-13T12:56:04Z")

</div>

The table is the only visualization that I would like to expose this on.

---

<div class="post-metadata">

**Author:** ![zietho](https://dub1.discourse-cdn.com/dynatrace/user_avatar/community.dynatrace.com/zietho/32/41733_2.png) [@zietho](https://community.dynatrace.com/u/zietho)\
**Post date:** [December 13, 2023, 2:42pm UTC](https://community.dynatrace.com/t/urls-in-new-dashboards/42840/12 "2023-12-13T14:42:43Z")

</div>

What we are **currently working on** is simply offering an “Open link” action on the table, which IMHO is 80% of the way to a proper solution. Hopefully, this will make it into 1.283 (January)

The **next logical step** is to allow you to show a beautified link text.

For example,

- link text: “my link”
- link:&nbsp; “[https://myverylongandveryuglylink.com](https://myverylongandveryuglylink.com)”

---

<div class="post-metadata">

**Author:** ![AmitChiba](https://dub1.discourse-cdn.com/dynatrace/user_avatar/community.dynatrace.com/amitchiba/32/17623_2.png) [@AmitChiba](https://community.dynatrace.com/u/AmitChiba)\
**Post date:** [December 13, 2023, 2:45pm UTC](https://community.dynatrace.com/t/urls-in-new-dashboards/42840/13 "2023-12-13T14:45:44Z")

</div>

This is brilliant. Thanks for the update. For now, having it functional is good enough for me to achieve my objective.

Many thanks

Regards,

Amit

---

<div class="post-metadata">

**Author:** ![zietho](https://dub1.discourse-cdn.com/dynatrace/user_avatar/community.dynatrace.com/zietho/32/41733_2.png) [@zietho](https://community.dynatrace.com/u/zietho)\
**Post date:** [December 13, 2023, 2:57pm UTC](https://community.dynatrace.com/t/urls-in-new-dashboards/42840/14 "2023-12-13T14:57:28Z")

</div>

**Spoiler alert!**

looks (reached out to the team and seems we already managed to do it in 1.283) like:

 ![zietho_0-1702479407161.png](https://global.discourse-cdn.com/dynatrace/original/2X/6/658aaee51789e54c86825254038a601da9868bba.jpeg)

---

<div class="post-metadata">

**Author:** ![calfano](https://dub1.discourse-cdn.com/dynatrace/user_avatar/community.dynatrace.com/calfano/32/35558_2.png) [@calfano](https://community.dynatrace.com/u/calfano)\
**Post date:** [December 19, 2023, 8:59pm UTC](https://community.dynatrace.com/t/urls-in-new-dashboards/42840/15 "2023-12-19T20:59:42Z")

</div>

Sorry not sure I understood, can I use code execution to have a clickable link in a table visualization today or no? I’m eager to get clickable links in my dashboards!

---

<div class="post-metadata">

**Author:** ![zietho](https://dub1.discourse-cdn.com/dynatrace/user_avatar/community.dynatrace.com/zietho/32/41733_2.png) [@zietho](https://community.dynatrace.com/u/zietho)\
**Post date:** [December 19, 2023, 9:29pm UTC](https://community.dynatrace.com/t/urls-in-new-dashboards/42840/16 "2023-12-19T21:29:07Z")

</div>

With 1.283 yes. It doesn’t matter whether it is code, build or a query tile or section. As long as a valid https links is the value of the cell we will provide a “open link” cell action. :). So yes

---

<div class="post-metadata">

**Author:** ![AmitChiba](https://dub1.discourse-cdn.com/dynatrace/user_avatar/community.dynatrace.com/amitchiba/32/17623_2.png) [@AmitChiba](https://community.dynatrace.com/u/AmitChiba)\
**Post date:** [January 19, 2024, 1:12pm UTC](https://community.dynatrace.com/t/urls-in-new-dashboards/42840/17 "2024-01-19T13:12:27Z")

</div>

Hi&nbsp;[@zietho](https://community.dynatrace.com/user/23400)&nbsp;,

Do you know if&nbsp; it managed to make the V1.283 build? My instance was upgraded last night, but I dont see the option to open link.

Thank you

Regards,

Amit

---

<div class="post-metadata">

**Author:** ![zietho](https://dub1.discourse-cdn.com/dynatrace/user_avatar/community.dynatrace.com/zietho/32/41733_2.png) [@zietho](https://community.dynatrace.com/u/zietho)\
**Post date:** [January 19, 2024, 2:21pm UTC](https://community.dynatrace.com/t/urls-in-new-dashboards/42840/18 "2024-01-19T14:21:23Z")

</div>

Have you added https://… or http:// we only offer it if the column contains a true links with a prefix of a protocol.

---

<div class="post-metadata">

**Author:** ![AmitChiba](https://dub1.discourse-cdn.com/dynatrace/user_avatar/community.dynatrace.com/amitchiba/32/17623_2.png) [@AmitChiba](https://community.dynatrace.com/u/AmitChiba)\
**Post date:** [January 19, 2024, 4:02pm UTC](https://community.dynatrace.com/t/urls-in-new-dashboards/42840/19 "2024-01-19T16:02:51Z")

</div>

Yes I have prefixed it with the protocol.

 ![AmitChiba_0-1705680118998.png](https://global.discourse-cdn.com/dynatrace/original/2X/e/ebd63f010e5aff32d6518668b8bbda1868d8d074.png)

This is the grail query

data record(url=“[https://www.google.com](https://www.google.com)”)

---

<div class="post-metadata">

**Author:** ![AmitChiba](https://dub1.discourse-cdn.com/dynatrace/user_avatar/community.dynatrace.com/amitchiba/32/17623_2.png) [@AmitChiba](https://community.dynatrace.com/u/AmitChiba)\
**Post date:** [January 25, 2024, 10:33am UTC](https://community.dynatrace.com/t/urls-in-new-dashboards/42840/20 "2024-01-25T10:33:15Z")

</div>

Hi All,

This now resolved. Thank you very much for the assistance.

[Next page](https://community.dynatrace.com/t/urls-in-new-dashboards/42840.md?page=2)
