# Sending file from Ignition to Teams channel

**URL:** <https://forum.inductiveautomation.com/t/sending-file-from-ignition-to-teams-channel/69672>\
**Category:** Ignition\
**Tags:** ignition81, scripting, python, vision, perspective\
**Created:** [February 10, 2023, 5:04am UTC](https://forum.inductiveautomation.com/t/sending-file-from-ignition-to-teams-channel/69672 "2023-02-10T05:04:15Z")\
**Posts on this page:** 8\
**Page:** 1

<div class="post-metadata">

**Author:** ![John\_S1](https://avatars.discourse-cdn.com/v4/letter/j/c0e974/32.png) [@John\_S1](https://forum.inductiveautomation.com/u/John_S1)\
**Post date:** [February 10, 2023, 5:04am UTC](https://forum.inductiveautomation.com/t/sending-file-from-ignition-to-teams-channel/69672/1 "2023-02-10T05:04:15Z")

</div>

Hi everyone,  
I have a query in which can we also send files to a team's channel? I know we can send notifications/messages to a particular team's channel/group, but I want to send some pdf, txt, and even some video files from the ignition. The data will be stored locally or in DB so I need to fetch the data and send it to Teams.

My requirement is like to

1. Fetch the data from local storage or from a database.
2. Send the same to teams from Ignition.  
Any idea on how I can achieve this? Thank you in advance.

---

<div class="post-metadata">

**Author:** ![John\_S1](https://avatars.discourse-cdn.com/v4/letter/j/c0e974/32.png) [@John\_S1](https://forum.inductiveautomation.com/u/John_S1)\
**Post date:** [February 13, 2023, 8:37am UTC](https://forum.inductiveautomation.com/t/sending-file-from-ignition-to-teams-channel/69672/2 "2023-02-13T08:37:28Z")

</div>

Hello Everyone ,  
Any idea on this, how we can achieve this?

---

<div class="post-metadata">

**Author:** ![pturmel](https://sea1.discourse-cdn.com/inductiveautomation/user_avatar/forum.inductiveautomation.com/pturmel/32/3295_2.png) [@pturmel](https://forum.inductiveautomation.com/u/pturmel)\
**Post date:** [February 13, 2023, 1:06pm UTC](https://forum.inductiveautomation.com/t/sending-file-from-ignition-to-teams-channel/69672/3 "2023-02-13T13:06:32Z")

</div>

There are forum topics on sending [messages to Teams](https://forum.inductiveautomation.com/search?q=message%20Microsoft%20Teams) via their API. Start there. Your goal, if possible, would naturally be some related part of the Teams external API.

It looks like you are going to have to blaze the trail for the rest of us. Please report back when you have it working.

---

<div class="post-metadata">

**Author:** ![John\_S1](https://avatars.discourse-cdn.com/v4/letter/j/c0e974/32.png) [@John\_S1](https://forum.inductiveautomation.com/u/John_S1)\
**Post date:** [February 14, 2023, 3:27am UTC](https://forum.inductiveautomation.com/t/sending-file-from-ignition-to-teams-channel/69672/4 "2023-02-14T03:27:47Z")

</div>

Thank you @pturmel, I will check on those, Actually, I was able to send messages to the team channel, but I want to send some files as well for eg: I'm able to send messages to the channel using incoming webhook, But it is not accepting the Files and throwing error, I don't know whether I'm trying it wrong, that's why I connected with our experienced and supportive team in this forum.

---

<div class="post-metadata">

**Author:** ![victordcq](https://avatars.discourse-cdn.com/v4/letter/v/f6c823/32.png) [@victordcq](https://forum.inductiveautomation.com/u/victordcq)\
**Post date:** [February 14, 2023, 7:15am UTC](https://forum.inductiveautomation.com/t/sending-file-from-ignition-to-teams-channel/69672/5 "2023-02-14T07:15:50Z")

</div>

It doesnt look like teams supports file attachments using the webhooks.  
you'll probably need a bot

> **[Send and receive files using bot - Teams](https://learn.microsoft.com/en-us/microsoftteams/platform/bots/how-to/bots-filesv4)**
>
> Learn how to send and receive files through the bot using Graph APIs for personal, channel and groupchat scopes.

you'll have to send a file to a drive where the bot than can distribute it on teams

---

<div class="post-metadata">

**Author:** ![John\_S1](https://avatars.discourse-cdn.com/v4/letter/j/c0e974/32.png) [@John\_S1](https://forum.inductiveautomation.com/u/John_S1)\
**Post date:** [February 14, 2023, 8:43am UTC](https://forum.inductiveautomation.com/t/sending-file-from-ignition-to-teams-channel/69672/6 "2023-02-14T08:43:03Z")

</div>

Thank you, Is it possible that you can share me little bit more info on the same.

---

<div class="post-metadata">

**Author:** ![victordcq](https://avatars.discourse-cdn.com/v4/letter/v/f6c823/32.png) [@victordcq](https://forum.inductiveautomation.com/u/victordcq)\
**Post date:** [February 14, 2023, 10:45am UTC](https://forum.inductiveautomation.com/t/sending-file-from-ignition-to-teams-channel/69672/7 "2023-02-14T10:45:30Z")

</div>

i have no experience with this sorry.  
i know how to use api's so i looked for that but i saw it was not supported and that you had to use bots, so i linked the bots page.

---

<div class="post-metadata">

**Author:** ![John\_S1](https://avatars.discourse-cdn.com/v4/letter/j/c0e974/32.png) [@John\_S1](https://forum.inductiveautomation.com/u/John_S1)\
**Post date:** [February 15, 2023, 4:50am UTC](https://forum.inductiveautomation.com/t/sending-file-from-ignition-to-teams-channel/69672/8 "2023-02-15T04:50:03Z")

</div>

No Issues, I will check. Thanks for the support.
