# Is it possible to send one email with several Dashboard PDF reports?

**URL:** <https://discuss.elastic.co/t/is-it-possible-to-send-one-email-with-several-dashboard-pdf-reports/291359>\
**Category:** Kibana\
**Created:** [December 9, 2021, 6:17pm UTC](https://discuss.elastic.co/t/is-it-possible-to-send-one-email-with-several-dashboard-pdf-reports/291359 "2021-12-09T18:17:11Z")\
**Posts on this page:** 5\
**Page:** 1

<div class="post-metadata">

**Author:** ![Luis\_P](https://sea2.discourse-cdn.com/elastic/user_avatar/discuss.elastic.co/luis_p/32/92453_2.png) [@Luis\_P](https://discuss.elastic.co/u/Luis_P)\
**Post date:** [December 9, 2021, 6:17pm UTC](https://discuss.elastic.co/t/is-it-possible-to-send-one-email-with-several-dashboard-pdf-reports/291359/1 "2021-12-09T18:17:11Z")

</div>

I've been building a watcher with the purpose of when the condition is met, it should send one email with several Dashboard PDF reports as attachments, one for each process. So far I've only been able to make it so it sends each Dashboard PDF per process in separated emails, using the foreach field in the email action. Ideally, what I would want is to use the foreach field in the attachments, so it attaches the PDF for each process, however I've failed to make it work so far and haven't seen any documentation or topic related to this. So my question is, is it possible to do so? I'm using version 7.9.  
Thank you!

Kind regards,

Luís

---

<div class="post-metadata">

**Author:** ![tsullivan](https://sea2.discourse-cdn.com/elastic/user_avatar/discuss.elastic.co/tsullivan/32/31077_2.png) [@tsullivan](https://discuss.elastic.co/u/tsullivan)\
**Post date:** [December 14, 2021, 5:23pm UTC](https://discuss.elastic.co/t/is-it-possible-to-send-one-email-with-several-dashboard-pdf-reports/291359/2 "2021-12-14T17:23:55Z")

</div>

The documentation is here: [Watcher email action | Elasticsearch Guide [7.16] | Elastic](https://www.elastic.co/guide/en/elasticsearch/reference/current/actions-email.html)

The example given has multiple attachments with one of them being a reporting type. It appears you can have multiple attachments that use the reporting attachment type. Have you tried that?

---

<div class="post-metadata">

**Author:** ![Luis\_P](https://sea2.discourse-cdn.com/elastic/user_avatar/discuss.elastic.co/luis_p/32/92453_2.png) [@Luis\_P](https://discuss.elastic.co/u/Luis_P)\
**Post date:** [December 15, 2021, 9:24am UTC](https://discuss.elastic.co/t/is-it-possible-to-send-one-email-with-several-dashboard-pdf-reports/291359/3 "2021-12-15T09:24:40Z")

</div>

Hello Tim, thank you for the suggestion. The example provided in the documentation does show that I can have multiple attachments, however they are a sort of "hard-coded", from what I've seen I can't run a foreach on the reporting type attachment to attach a dashboard for each defined field. For example, I have 10 processes that fulfill a defined condition, I want an attachment with a dashboard pdf for each process, being that the number of processes that fulfill the condition may vary day by day. I'm unsure if I was able to explain clearly...

---

<div class="post-metadata">

**Author:** ![tsullivan](https://sea2.discourse-cdn.com/elastic/user_avatar/discuss.elastic.co/tsullivan/32/31077_2.png) [@tsullivan](https://discuss.elastic.co/u/tsullivan)\
**Post date:** [December 15, 2021, 9:16pm UTC](https://discuss.elastic.co/t/is-it-possible-to-send-one-email-with-several-dashboard-pdf-reports/291359/4 "2021-12-15T21:16:30Z")

</div>

> [@Luis\_P](#):
>
> from what I've seen I can't run a foreach on the reporting type attachment to attach a dashboard for each defined field

Can you provide an example of the Watch and any error message that you are getting?

---

<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:** [January 12, 2022, 9:17pm UTC](https://discuss.elastic.co/t/is-it-possible-to-send-one-email-with-several-dashboard-pdf-reports/291359/5 "2022-01-12T21:17:02Z")

</div>

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