# Variable template

**URL:** <https://community.grafana.com/t/variable-template/37575>\
**Category:** Grafana\
**Created:** [October 6, 2020, 3:39pm UTC](https://community.grafana.com/t/variable-template/37575 "2020-10-06T15:39:00Z")\
**Posts on this page:** 3\
**Page:** 1

<div class="post-metadata">

**Author:** ![pisonisilvano](https://avatars.discourse-cdn.com/v4/letter/p/848f3c/32.png) [@pisonisilvano](https://community.grafana.com/u/pisonisilvano)\
**Post date:** [October 6, 2020, 3:39pm UTC](https://community.grafana.com/t/variable-template/37575/1 "2020-10-06T15:39:00Z")

</div>

HI, I ask you for help to do the following:  
with a Text panel, developed in html and JS code, through API, I query a server that returns me a list of devices belonging to a particular group of devices. I would like to pass this list to a templates variable to take advantage of the “repeat” option on other dashboard panels.  
What I can’t do is just create this template variable

---

<div class="post-metadata">

**Author:** ![aparajitachatterjee](https://avatars.discourse-cdn.com/v4/letter/a/7ba0ec/32.png) [@aparajitachatterjee](https://community.grafana.com/u/aparajitachatterjee)\
**Post date:** [October 7, 2020, 2:38pm UTC](https://community.grafana.com/t/variable-template/37575/2 "2020-10-07T14:38:40Z")

</div>

Have you checked the documentation on templated and variables? Here is the link:

> **[Templates and variables](https://grafana.com/docs/grafana/latest/variables/)**
>
> Templates and variables A variable is a placeholder for a value. You can use variables in metric queries and in panel titles. So when you change the value, …

---

<div class="post-metadata">

**Author:** ![pisonisilvano](https://avatars.discourse-cdn.com/v4/letter/p/848f3c/32.png) [@pisonisilvano](https://community.grafana.com/u/pisonisilvano)\
**Post date:** [October 9, 2020, 6:22pm UTC](https://community.grafana.com/t/variable-template/37575/3 "2020-10-09T18:22:42Z")

</div>

Thanks aparajitachatterjee
