MAUCacheAdmin icon indicating copy to clipboard operation
MAUCacheAdmin copied to clipboard

Post to a Teams channel?

Open ryannix123 opened this issue 5 years ago • 4 comments

@pbowden-msft Thanks for writing this script!

Any way to add notifications to a Teams channel?

ryannix123 avatar Jun 25 '19 13:06 ryannix123

Looks like Teams supports incoming webhooks so it should be pretty easy to add.

I'll take a look in a bit if Paul doesn't beat me, only problem is I don't have Teams to test with.

kevinmcox avatar Jun 25 '19 14:06 kevinmcox

Awesome, thank you!

ryannix123 avatar Jun 25 '19 15:06 ryannix123

Didn't realize you could sign-up for Teams with a free account now.

Code is written, testing it now.

kevinmcox avatar Jun 25 '19 15:06 kevinmcox

@ryannix123 Checkout PR #19, I added basic support for Teams notifications.

There are definitely some formatting options available that you could configure (by editing MAUCacheAdmin) such as adding a title, formatting (bold, italics, etc.) to suite your taste.

I don't see a way to specify a name or icon in the cURL request like we can with Slack, so that'll have to be configured when setting up the incoming web hook unless Paul knows some options I couldn't find online.

But for basic notifications this will get the job done.

kevinmcox avatar Jun 25 '19 16:06 kevinmcox