# How can i use iframe code in emails watcher

**URL:** <https://discuss.elastic.co/t/how-can-i-use-iframe-code-in-emails-watcher/176012>\
**Category:** Kibana\
**Created:** [April 9, 2019, 11:08am UTC](https://discuss.elastic.co/t/how-can-i-use-iframe-code-in-emails-watcher/176012 "2019-04-09T11:08:07Z")\
**Posts on this page:** 6\
**Page:** 1

<div class="post-metadata">

**Author:** ![bhushan](https://avatars.discourse-cdn.com/v4/letter/b/a87d85/32.png) [@bhushan](https://discuss.elastic.co/u/bhushan)\
**Post date:** [April 9, 2019, 11:08am UTC](https://discuss.elastic.co/t/how-can-i-use-iframe-code-in-emails-watcher/176012/1 "2019-04-09T11:08:08Z")

</div>

I want my dashboard to be view in email so i copied the iframe code and pasted in html email watcher but i see blank in emails.Please help me in embedding it or mention any other way to show dashboard on email.

Thanks and regards,  
Bhushan

---

<div class="post-metadata">

**Author:** ![Aaron\_Caldwell](https://sea2.discourse-cdn.com/elastic/user_avatar/discuss.elastic.co/aaron_caldwell/32/45755_2.png) [@Aaron\_Caldwell](https://discuss.elastic.co/u/Aaron_Caldwell)\
**Post date:** [April 9, 2019, 3:36pm UTC](https://discuss.elastic.co/t/how-can-i-use-iframe-code-in-emails-watcher/176012/2 "2019-04-09T15:36:21Z")

</div>

Hello Bhushan,

I'd suggest leveraging our [automatic report generation](https://www.elastic.co/guide/en/kibana/current/automating-report-generation.html) for this sort of functionality, as it's designed for exactly this use case.

Regards,  
Aaron

---

<div class="post-metadata">

**Author:** ![bhushan](https://avatars.discourse-cdn.com/v4/letter/b/a87d85/32.png) [@bhushan](https://discuss.elastic.co/u/bhushan)\
**Post date:** [April 10, 2019, 6:16am UTC](https://discuss.elastic.co/t/how-can-i-use-iframe-code-in-emails-watcher/176012/3 "2019-04-10T06:16:53Z")

</div>

Hi Aaron,  
Thank you for the suggestions.  
I have bit of questions on solution you provided.

1)How can i generate the api for my dashboard (e.g "url": "[http://0.0.0.0:5601/api/reporting/generate/dashboard/Error-Monitoring?\_g=(time:(from:now-1d%2Fd,mode:quick,to:now)](http://0.0.0.0:5601/api/reporting/generate/dashboard/Error-Monitoring?_g=(time:(from:now-1d%2Fd,mode:quick,to:now))))

Do i need to put my dasboard name in above api or do i need to generate it from somewhere.

2)If i use the above api do i need to change the host in api or it will remain same as "[http://0.0.0.0:5601/api](http://0.0.0.0:5601/api)".

Thanks and regards,  
Bhushan

---

<div class="post-metadata">

**Author:** ![prempalsingh](https://avatars.discourse-cdn.com/v4/letter/p/848f3c/32.png) [@prempalsingh](https://discuss.elastic.co/u/prempalsingh)\
**Post date:** [April 10, 2019, 6:23am UTC](https://discuss.elastic.co/t/how-can-i-use-iframe-code-in-emails-watcher/176012/4 "2019-04-10T06:23:36Z")

</div>

Great! Thank you for sharing.  
Best Regards  
Prempal Singh  
[Best SEO Expert in India](https://prempalsingh.com)

---

<div class="post-metadata">

**Author:** ![bhushan](https://avatars.discourse-cdn.com/v4/letter/b/a87d85/32.png) [@bhushan](https://discuss.elastic.co/u/bhushan)\
**Post date:** [April 15, 2019, 1:31pm UTC](https://discuss.elastic.co/t/how-can-i-use-iframe-code-in-emails-watcher/176012/5 "2019-04-15T13:31:00Z")

</div>

Hi Aaron,  
Can you suggest me another way rather then automatic report generation.

Thanks,  
Bhushan

---

<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:** [May 13, 2019, 1:31pm UTC](https://discuss.elastic.co/t/how-can-i-use-iframe-code-in-emails-watcher/176012/6 "2019-05-13T13:31:01Z")

</div>

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