# Watcher: List of recipients from stored script/template

**URL:** <https://discuss.elastic.co/t/watcher-list-of-recipients-from-stored-script-template/191382>\
**Category:** Elasticsearch\
**Tags:** elastic-stack-alerting\
**Created:** [July 19, 2019, 11:28am UTC](https://discuss.elastic.co/t/watcher-list-of-recipients-from-stored-script-template/191382 "2019-07-19T11:28:25Z")\
**Posts on this page:** 3\
**Page:** 1

<div class="post-metadata">

**Author:** ![mario\_zet](https://sea2.discourse-cdn.com/elastic/user_avatar/discuss.elastic.co/mario_zet/32/50524_2.png) [@mario\_zet](https://discuss.elastic.co/u/mario_zet)\
**Post date:** [July 19, 2019, 11:28am UTC](https://discuss.elastic.co/t/watcher-list-of-recipients-from-stored-script-template/191382/1 "2019-07-19T11:28:26Z")

</div>

Hello there!

I have configured several watchers in elastic version 7.0.1. In all watchers I have e-mail action with the same list of recipients.

I'd like to ask is there any possibility to include that list from stored script or template?  
Alternatively, is there any possibility to load e-mail action from a stored template?

Thanks,  
Mario

---

<div class="post-metadata">

**Author:** ![spinscale](https://sea2.discourse-cdn.com/elastic/user_avatar/discuss.elastic.co/spinscale/32/25011_2.png) [@spinscale](https://discuss.elastic.co/u/spinscale)\
**Post date:** [August 1, 2019, 12:06pm UTC](https://discuss.elastic.co/t/watcher-list-of-recipients-from-stored-script-template/191382/2 "2019-08-01T12:06:15Z")

</div>

Hey,

so, your requirement does not work exact, but you could do a workaround: You could execute a [chain input](https://www.elastic.co/guide/en/elastic-stack-overview/7.2/input-chain.html), which on the one hand executes your existing input, and on the other hand executes a search against an index (maybe just search for the id), and that single document contains all the recipients. This way the list of recipients would be available in the payload and you could use it.

--Alex

---

<div class="post-metadata">

**Author:** ![system](https://us1.discourse-cdn.com/elastic/original/3X/1/a/1ac57faf039f6b580b3f104ef42a2a89e41014de.png) [@system](https://discuss.elastic.co/u/system)\
**Post date:** [August 29, 2019, 12:06pm UTC](https://discuss.elastic.co/t/watcher-list-of-recipients-from-stored-script-template/191382/3 "2019-08-29T12:06:16Z")

</div>

This topic was automatically closed 28 days after the last reply. New replies are no longer allowed.
