# How to repeat watcher action for each payload data as per search input string?

**URL:** <https://discuss.elastic.co/t/how-to-repeat-watcher-action-for-each-payload-data-as-per-search-input-string/195076>\
**Category:** Elasticsearch\
**Tags:** elastic-stack-alerting\
**Created:** [August 13, 2019, 6:16pm UTC](https://discuss.elastic.co/t/how-to-repeat-watcher-action-for-each-payload-data-as-per-search-input-string/195076 "2019-08-13T18:16:51Z")\
**Posts on this page:** 3\
**Page:** 1

<div class="post-metadata">

**Author:** ![saurabh06](https://sea2.discourse-cdn.com/elastic/user_avatar/discuss.elastic.co/saurabh06/32/51529_2.png) [@saurabh06](https://discuss.elastic.co/u/saurabh06)\
**Post date:** [August 13, 2019, 6:16pm UTC](https://discuss.elastic.co/t/how-to-repeat-watcher-action-for-each-payload-data-as-per-search-input-string/195076/1 "2019-08-13T18:16:51Z")

</div>

I want to send multiple email as per the list of payload coming for searched input string? how its possible with watcher API of ES??

---

<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 14, 2019, 7:52am UTC](https://discuss.elastic.co/t/how-to-repeat-watcher-action-for-each-payload-data-as-per-search-input-string/195076/2 "2019-08-14T07:52:34Z")

</div>

This functionality has been added in Elasticsearch 7.3, see [https://www.elastic.co/guide/en/elastic-stack-overview/7.3/action-foreach.html](https://www.elastic.co/guide/en/elastic-stack-overview/7.3/action-foreach.html)

---

<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:** [September 11, 2019, 7:52am UTC](https://discuss.elastic.co/t/how-to-repeat-watcher-action-for-each-payload-data-as-per-search-input-string/195076/3 "2019-09-11T07:52:38Z")

</div>

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