# Device Tags in Device state table block

**URL:** <https://forums.losant.com/t/device-tags-in-device-state-table-block/4313>\
**Category:** Help\
**Tags:** dashboard\
**Created:** [January 5, 2022, 4:10pm UTC](https://forums.losant.com/t/device-tags-in-device-state-table-block/4313 "2022-01-05T16:10:35Z")\
**Posts on this page:** 7\
**Page:** 1

<div class="post-metadata">

**Author:** ![Lars\_Andersson](https://avatars.discourse-cdn.com/v4/letter/l/f05b48/32.png) [@Lars\_Andersson](https://forums.losant.com/u/Lars_Andersson)\
**Post date:** [January 5, 2022, 4:10pm UTC](https://forums.losant.com/t/device-tags-in-device-state-table-block/4313/1 "2022-01-05T16:10:35Z")

</div>

I have a column configured as Device Tags as shown:  
 ![image](https://us1.discourse-cdn.com/flex015/uploads/getstructure/original/2X/1/175c0457d58412726c49f54f472a2229b3915b0c.png)

The preview shows:  
 ![image](https://us1.discourse-cdn.com/flex015/uploads/getstructure/original/2X/6/6b1dfc9f56d8dc520391474f33b6c910beb18ab3.png)

I have tried using the helper valueByKey to get just one of the tags, but without success.  
Any examples you can show?

---

<div class="post-metadata">

**Author:** ![Heath](https://sea1.discourse-cdn.com/flex015/user_avatar/forums.losant.com/heath/32/3036_2.png) [@Heath](https://forums.losant.com/u/Heath)\
**Post date:** [January 5, 2022, 4:34pm UTC](https://forums.losant.com/t/device-tags-in-device-state-table-block/4313/2 "2022-01-05T16:34:27Z")

</div>

@Lars_Andersson,

Am I correct in assuming that you’re using a [Device List Block](https://docs.losant.com/dashboards/device-list/)?

When setting a source for a Device Tag Column, you just need to type in a single tag:

 ![image](https://us1.discourse-cdn.com/flex015/uploads/getstructure/original/2X/1/111cbc33bf050f636aab310c86b8ca4856860fc7.png)

Could you please confirm which block you are using? A screenshot of the rest of your configuration would be helpful, as well.

Thank you,  
Heath

---

<div class="post-metadata">

**Author:** ![Lars\_Andersson](https://avatars.discourse-cdn.com/v4/letter/l/f05b48/32.png) [@Lars\_Andersson](https://forums.losant.com/u/Lars_Andersson)\
**Post date:** [January 5, 2022, 4:36pm UTC](https://forums.losant.com/t/device-tags-in-device-state-table-block/4313/3 "2022-01-05T16:36:35Z")

</div>

The “Device State Table” block

---

<div class="post-metadata">

**Author:** ![Heath](https://sea1.discourse-cdn.com/flex015/user_avatar/forums.losant.com/heath/32/3036_2.png) [@Heath](https://forums.losant.com/u/Heath)\
**Post date:** [January 5, 2022, 4:52pm UTC](https://forums.losant.com/t/device-tags-in-device-state-table-block/4313/4 "2022-01-05T16:52:54Z")

</div>

Ah, okay. I’m with you now.

So, what you’re seeing is the whole list of the device tags. `{{format value}}` is is just json-stringifying `value`. To get a single device tag to show, you’ll do something like:

 ![image](https://us1.discourse-cdn.com/flex015/uploads/getstructure/original/2X/1/12394d81def35971ffbb738c0b8510b24b807e81.png)

Where there is a tag on this device with a key of `key` and a value of `value`.

Please let me know if this helps.

Heath

---

<div class="post-metadata">

**Author:** ![Lars\_Andersson](https://avatars.discourse-cdn.com/v4/letter/l/f05b48/32.png) [@Lars\_Andersson](https://forums.losant.com/u/Lars_Andersson)\
**Post date:** [January 5, 2022, 5:04pm UTC](https://forums.losant.com/t/device-tags-in-device-state-table-block/4313/5 "2022-01-05T17:04:10Z")

</div>

I knew there had to be an easier way…  
Couldn’t find that anywhere in the documentation though.

I’m good now.

Thanks

---

<div class="post-metadata">

**Author:** ![Lars\_Andersson](https://avatars.discourse-cdn.com/v4/letter/l/f05b48/32.png) [@Lars\_Andersson](https://forums.losant.com/u/Lars_Andersson)\
**Post date:** [January 5, 2022, 5:14pm UTC](https://forums.losant.com/t/device-tags-in-device-state-table-block/4313/6 "2022-01-05T17:14:56Z")

</div>

Also, kind of related to this state block. When selecting the settings gear to download the data as CSV, it seems to name the file as Dashboardname+BlockName.  
Is there a way to modify that?

---

<div class="post-metadata">

**Author:** ![Heath](https://sea1.discourse-cdn.com/flex015/user_avatar/forums.losant.com/heath/32/3036_2.png) [@Heath](https://forums.losant.com/u/Heath)\
**Post date:** [January 5, 2022, 6:09pm UTC](https://forums.losant.com/t/device-tags-in-device-state-table-block/4313/7 "2022-01-05T18:09:27Z")

</div>

@Lars_Andersson,

There is not a way to change this right now.

Heath
