# How we can attach a document with the alert to teams action?

**URL:** <https://discuss.elastic.co/t/how-we-can-attach-a-document-with-the-alert-to-teams-action/289790>\
**Category:** Kibana\
**Tags:** elastic-stack-alerting\
**Created:** [November 22, 2021, 9:43am UTC](https://discuss.elastic.co/t/how-we-can-attach-a-document-with-the-alert-to-teams-action/289790 "2021-11-22T09:43:10Z")\
**Posts on this page:** 5\
**Page:** 1

<div class="post-metadata">

**Author:** ![ranju](https://sea2.discourse-cdn.com/elastic/user_avatar/discuss.elastic.co/ranju/32/84299_2.png) [@ranju](https://discuss.elastic.co/u/ranju)\
**Post date:** [November 22, 2021, 9:43am UTC](https://discuss.elastic.co/t/how-we-can-attach-a-document-with-the-alert-to-teams-action/289790/1 "2021-11-22T09:43:10Z")

</div>

Document means some dashboard as pdf likewise.  
Currently, We are using webhook for sending alerts to the team's channels from the watcher.  
same functionality we are able to perform in email action.  
eg:

```auto

"actions": {
    "my_webhook": {
      "throttle_period_in_millis": 300000,
      "webhook": {
        "scheme": "https",
        "host": "abc.webhook.office.com",
        "port": 443,
        "method": "post",
        "path": "/webhookb2/9ad3804a2f6/IncomingWebhook/6cf8bfd6c1/fc8759d69cf0",
        "params": {},
        "headers": {},
        "body": {
          "source": {
            "text": "{{ctx.watch_id}}:{{ctx.payload.hits.total}}"
          },
          "lang": "mustache",
          "options": {
            "content_type": "application/json; charset=UTF-8"
          }
        }
      }

```

---

<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 2, 2021, 8:55pm UTC](https://discuss.elastic.co/t/how-we-can-attach-a-document-with-the-alert-to-teams-action/289790/2 "2021-12-02T20:55:55Z")

</div>

You're not able to add a message in the alert when using the Teams connector?

Are you using Kibana alerting to do this? [Microsoft Teams connector and action | Kibana Guide [master] | Elastic](https://www.elastic.co/guide/en/kibana/master/teams-action-type.html)

---

<div class="post-metadata">

**Author:** ![ranju](https://sea2.discourse-cdn.com/elastic/user_avatar/discuss.elastic.co/ranju/32/84299_2.png) [@ranju](https://discuss.elastic.co/u/ranju)\
**Post date:** [December 8, 2021, 2:36pm UTC](https://discuss.elastic.co/t/how-we-can-attach-a-document-with-the-alert-to-teams-action/289790/3 "2021-12-08T14:36:44Z")

</div>

Yes, using webhook we are sending alerts from watcher to teams channels. we can able to send alert but I need to add some pdf/images of the dashboard to the message.

Same functionality we are done using email action.

Thanks

---

<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 8, 2021, 6:34pm UTC](https://discuss.elastic.co/t/how-we-can-attach-a-document-with-the-alert-to-teams-action/289790/4 "2021-12-08T18:34:08Z")

</div>

It says in the documentation that only text data is allowed for actions with this connector: [Microsoft Teams connector and action | Kibana Guide [7.16] | Elastic](https://www.elastic.co/guide/en/kibana/7.16/teams-action-type.html#teams-action-configuration)

To push for an enhancement to allow more types of data through the action, you'll have to file an issue requesting support for it in the Kibana issue tracker: [Issues · elastic/kibana · GitHub](https://github.com/elastic/kibana/issues)

---

<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 5, 2022, 6:35pm UTC](https://discuss.elastic.co/t/how-we-can-attach-a-document-with-the-alert-to-teams-action/289790/5 "2022-01-05T18:35:00Z")

</div>

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