We have updated our Terms of Service, Code of Conduct, and Addendum.

Notifications to Microsoft Teams

Daniel Jordan
Daniel Jordan Posts: 29 mod
edited September 2023 in Stream

Looking for a configuration example for sending webhook notifications to Teams channel.

Tagged:

Best Answer

  • Eugene Katz
    Eugene Katz Posts: 51 ✭✭
    edited March 11 Answer ✓

    Assuming you've already set up an incoming webhook in Microsoft Teams and got the webhook URL, the trick is to get the correct format which MS Teams expects.

    The trick is that MS Teams expects a specific JSON structure. This worked for me using custom format:

    Format: Custom

    Source expression: `{"text":"${_raw}"}`

    https://webhook.site/ is an excellent resource for testing what the output of your webhook post looks like (assuming there is nothing sensitive, of course).

    Note: Looks like compression needs to be turned off as well.

Answers

  • Eugene Katz
    Eugene Katz Posts: 51 ✭✭
    edited March 11 Answer ✓

    Assuming you've already set up an incoming webhook in Microsoft Teams and got the webhook URL, the trick is to get the correct format which MS Teams expects.

    The trick is that MS Teams expects a specific JSON structure. This worked for me using custom format:

    Format: Custom

    Source expression: `{"text":"${_raw}"}`

    https://webhook.site/ is an excellent resource for testing what the output of your webhook post looks like (assuming there is nothing sensitive, of course).

    Note: Looks like compression needs to be turned off as well.

This discussion has been closed.