PSTeams icon indicating copy to clipboard operation
PSTeams copied to clipboard

Support for uploading a file to a Teams message

Open TechDufus opened this issue 4 years ago • 3 comments

Is it possible to add a parameter -Attachment and point to a local file path to attach a file to the message?

TechDufus avatar Dec 07 '20 13:12 TechDufus

Don't think incoming webhooks support sending files. That would be great - if you find out that it supports this we can work it out.

PrzemyslawKlys avatar Dec 07 '20 13:12 PrzemyslawKlys

Dadgummit.. I should have done a search before making this issue. It looks like it's not supported yet.

https://stackoverflow.com/questions/53982764/send-files-to-microsoft-teams-using-webhook#53984068

TechDufus avatar Dec 07 '20 13:12 TechDufus

I've found it too. But that's a very old thread and according to that Adaptive Cards are not supported either - yet here we are using Adaptive Cards in incoming webhook.

PrzemyslawKlys avatar Dec 07 '20 13:12 PrzemyslawKlys

Closing in favor of #36

PrzemyslawKlys avatar Aug 19 '22 18:08 PrzemyslawKlys