12

A while ago I wrote a Powershell module to send notifications to Microsoft Teams:

https://github.com/mhouston100/PSMicrosoftTeams

Works like a charm. Right from the outset, one of the most requested features has been to attach files to the notifications.

Does anyone have any idea, information, documentation etc for attaching files through the 'Incoming Webhook' connector?

I've tried embedding Base64 encoded content directly in the notification etc but it doesn't seem to be the right wau

mhouston100
  • 1,173
  • 2
  • 19
  • 41

1 Answers1

12

Connectors only support MessageCard format. Attachments are not supported. You can use Bots to send or receive files to user.

Wajeed Shaikh
  • 3,078
  • 1
  • 23
  • 30
  • 7
    Ahh, disapointing, even the bot method is limited to existing sharepoint/onedrive files. I may just have to use a file share and UNC link. Thanks for taking the time. – mhouston100 Jan 02 '19 at 22:28