# DQL - How do I enable the ability to have the record open in 'Hosts'?

**URL:** <https://community.dynatrace.com/t/dql-how-do-i-enable-the-ability-to-have-the-record-open-in-hosts/51629>\
**Category:** DQL\
**Tags:** dql, dynatrace-managed\
**Created:** [May 14, 2025, 9:27am UTC](https://community.dynatrace.com/t/dql-how-do-i-enable-the-ability-to-have-the-record-open-in-hosts/51629 "2025-05-14T09:27:09Z")\
**Posts on this page:** 7\
**Page:** 1

<div class="post-metadata">

**Author:** ![badgerfifteen](https://avatars.discourse-cdn.com/v4/letter/b/e68b1a/32.png) [@badgerfifteen](https://community.dynatrace.com/u/badgerfifteen)\
**Post date:** [May 14, 2025, 9:27am UTC](https://community.dynatrace.com/t/dql-how-do-i-enable-the-ability-to-have-the-record-open-in-hosts/51629/1 "2025-05-14T09:27:09Z")

</div>

Hi, I have made a DQL query containing disk metrics. Under the ‘Host Name’ column, if I navigate to either ‘Open Record With’ or ‘Open Value with’, nothing shows up. What I intend to have, is it will open up in ‘Hosts’ or ‘Infrastructure & Operations’. Any ideas?

---

<div class="post-metadata">

**Author:** ![p\_devulapalli](https://dub1.discourse-cdn.com/dynatrace/user_avatar/community.dynatrace.com/p_devulapalli/32/41590_2.png) [@p\_devulapalli](https://community.dynatrace.com/u/p_devulapalli)\
**Post date:** [May 14, 2025, 10:49am UTC](https://community.dynatrace.com/t/dql-how-do-i-enable-the-ability-to-have-the-record-open-in-hosts/51629/2 "2025-05-14T10:49:15Z")

</div>

[@badgerfifteen](https://community.dynatrace.com/user/67521)&nbsp;If “dt.entity.host” is the field that you are using for Host Name you should be able to have the&nbsp;‘Open Record With’ option enable .&nbsp; Here is an example query that works for me

```markup
timeseries avg(dt.host.disk.used.percent), by: { dt.entity.disk, dt.entity.host } 
| fieldsAdd Host = entityName(dt.entity.host), Disk = entityName(dt.entity.disk),
 Usage = arrayLast(`avg(dt.host.disk.used.percent)`)
| sort Usage desc
| limit 10

```

---

<div class="post-metadata">

**Author:** ![badgerfifteen](https://avatars.discourse-cdn.com/v4/letter/b/e68b1a/32.png) [@badgerfifteen](https://community.dynatrace.com/u/badgerfifteen)\
**Post date:** [May 14, 2025, 11:49am UTC](https://community.dynatrace.com/t/dql-how-do-i-enable-the-ability-to-have-the-record-open-in-hosts/51629/3 "2025-05-14T11:49:17Z")

</div>

Interestingly, I have had a look at my code and this code here removes the ability to have the value open in ‘Hosts’. If I comment it out, it works as expected.

| fields Host, `Disk Name`, Utilisation, `Department`, Application

---

<div class="post-metadata">

**Author:** ![TomLichti](https://avatars.discourse-cdn.com/v4/letter/t/34f0e0/32.png) [@TomLichti](https://community.dynatrace.com/u/TomLichti)\
**Post date:** [May 20, 2025, 8:24pm UTC](https://community.dynatrace.com/t/dql-how-do-i-enable-the-ability-to-have-the-record-open-in-hosts/51629/4 "2025-05-20T20:24:54Z")

</div>

You have to have a field in the output that has the entity id. Add it at the end of your list of fields and ‘Open With’ will then work.

---

<div class="post-metadata">

**Author:** ![Fin\_Ubels](https://dub1.discourse-cdn.com/dynatrace/user_avatar/community.dynatrace.com/fin_ubels/32/18008_2.png) [@Fin\_Ubels](https://community.dynatrace.com/u/Fin_Ubels)\
**Post date:** [May 21, 2025, 4:35am UTC](https://community.dynatrace.com/t/dql-how-do-i-enable-the-ability-to-have-the-record-open-in-hosts/51629/5 "2025-05-21T04:35:56Z")

</div>

Adding on to this, you need to have that ID, but you can also hide the ID using the visualisation options but still retain the “Open With” features allowing you to create clean and functional dashboards/reports.

Showing ID is specified in the query but hidden using options on the right:

 ![Fin_Ubels_0-1747802060071.png](https://global.discourse-cdn.com/dynatrace/original/3X/2/b/2baebb1ccbcbdf551e400849b44b15764d42160b.png)

Showing “Open With” still working:

 ![Fin_Ubels_1-1747802096143.png](https://global.discourse-cdn.com/dynatrace/original/3X/d/5/d52bd3ff150371df6173d697705abe065ad1a7f6.png)

---

<div class="post-metadata">

**Author:** ![Immanuel\_G](https://avatars.discourse-cdn.com/v4/letter/i/3ab097/32.png) [@Immanuel\_G](https://community.dynatrace.com/u/Immanuel_G)\
**Post date:** [October 15, 2025, 8:23am UTC](https://community.dynatrace.com/t/dql-how-do-i-enable-the-ability-to-have-the-record-open-in-hosts/51629/6 "2025-10-15T08:23:16Z")

</div>

I 'm finding that that usually works, but not always. For example:

```python
fetch dt.davis.problems

```

By default, you get a bunch of options on any field and then&nbsp;_ **Open with**._ You also get app suggestions through_&nbsp; **Open value with** _ on field&nbsp;_ **event.id** &nbsp;_field\*.\*

All as expected, but if you do

```python
fetch dt.davis.problems
|fields event.id

```

Neither _ **O** _ **pen value with** or&nbsp;_ **Open with** _ provide any options.

Agree, some visualizations allow you to select which fields are visible or used in the legend, however, often I want to do something more with the data, such as joining it to other table and then do _ **summarize** _.&nbsp; Even if you do _ **summarize …, by :{event.id}** _, that event.id is no longer openable.

or also there is no _ **Open with** _ on a copy of the field, for example:

```python
fetch dt.davis.problems
|fieldsAdd event.id.copy = event.id

```

So it seems to be depending on more than just the value or string representation of a field.

Any suggestions ?

---

<div class="post-metadata">

**Author:** ![Fin\_Ubels](https://dub1.discourse-cdn.com/dynatrace/user_avatar/community.dynatrace.com/fin_ubels/32/18008_2.png) [@Fin\_Ubels](https://community.dynatrace.com/u/Fin_Ubels)\
**Post date:** [October 15, 2025, 10:13pm UTC](https://community.dynatrace.com/t/dql-how-do-i-enable-the-ability-to-have-the-record-open-in-hosts/51629/7 "2025-10-15T22:13:48Z")

</div>

From memory, for “Open With” to work with a problem ID you also need to include the event.type or event.kind (something that tells DT what the ID is) in the record. So using the example you posted above it would end up something like:

```markup
fetch dt.davis.problems
|fields event.id, event.type

```

I think it was one of those 2 fields. Hope that helps!
