Skip to main content
16-Pearl
Jun 3, 2024 4:34 AM UTC
Solved

How to send Microsoft teams notifications (may be in channels) through Thing Worx Platform

How to send Microsoft teams notifications (may be in channels) through Thing Worx Platform.

There is requirement like we want send notifications through Teams just we send though mail extension in Thing Worx.

Does anyone which extension is used to get this activity done. Is there any documented procedure on thing Worx Help center?

is twilio extension be useful here just like sms?

 

Rocko
RockoAnswer
19-Tanzanite
Jun 3, 2024 1:17 PM UTC

Most probably you will have to go though MS Graph API to send notification to Teams via REST.

Maybe using these endpoints with ContentLoader:

https://learn.microsoft.com/en-us/graph/api/channel-post-messages?view=graph-rest-1.0

4 replies

24-Ruby IV
Jun 3, 2024 7:32 AM UTC

Take a look:

Translate
Rocko
Rocko19-TanzaniteAnswer
19-Tanzanite
Jun 3, 2024 1:17 PM UTC

Most probably you will have to go though MS Graph API to send notification to Teams via REST.

Maybe using these endpoints with ContentLoader:

https://learn.microsoft.com/en-us/graph/api/channel-post-messages?view=graph-rest-1.0

Translate
16-Pearl
Jun 3, 2024 1:29 PM UTC

thanks i think i need to explore more on that side

Translate
17-Peridot
Jul 10, 2024 12:17 PM UTC

You were able to easily post into Teams channels by using the Webhook functionality https://learn.microsoft.com/en-us/microsoftteams/platform/webhooks-and-connectors/how-to/add-incoming-webhook?tabs=newteams%2Cdotnet

Create such a webhook, it provides a URL. Call this url in TWX via ContentLoaderFunctions PostText with the message body -> done.

 

But Microsoft just deprecated this flow and I did not look into the recommendations: https://devblogs.microsoft.com/microsoft365dev/retirement-of-office-365-connectors-within-microsoft-teams/ Maybe they offer something similar.

It was very easy, as not authentication was needed (just the url).

Translate