Send MS Teams Notifications (DEPRECATED)

Incoming Webhooks Deprecation

The integration described below uses the Incoming Webhooks connector, which is being deprecated. We advise all users to migrate to Teams Workflows, as outlined in this new documentation article.

For detailed timelines regarding this deprecation, please refer to the Microsoft documentation.


Create a Golive Automation

The first step is to create a new "MS Teams" Automation (as explained here: Automations):

spaces%2F-MWcvo1Q5iQLYT9dKP7d-855039963%2Fuploads%2Fgit-blob-77e44a41a18f50fff7df44ffa9661487fc9d8405%2F119439751.png?alt=media

Configure Incoming Webhook

Then, you need to get your MS Teams Incoming Webhook URL:

  1. Open MS Teams (app or browser version) and select the channel on which you would like to receive Golive notifications

  2. Click on the “three dots” button on the top right corner of the screen

  3. Click on “Connectors”

spaces%2F-MWcvo1Q5iQLYT9dKP7d-855039963%2Fuploads%2Fgit-blob-af565d5d928c9e38bc87be04faa473110789f677%2F119439758%20(2).png?alt=media

Create a new “Incoming Webhook” Connector:

spaces%2F-MWcvo1Q5iQLYT9dKP7d-855039963%2Fuploads%2Fgit-blob-07758d02ca9442fe16ee547052bdaf14e625149f%2F119439764%20(2).png?alt=media

If you cannot find the “Incoming Webhook” connector, it may be disabled on your MS Teams instance. Contact your MS Teams administrator in order to enable it.

Define a name (for instance “Golive”), upload an image and click on the “Create” button:

spaces%2F-MWcvo1Q5iQLYT9dKP7d-855039963%2Fuploads%2Fgit-blob-87c435f87e15020544d1e9dd3baa56adfa22046f%2F119439770.png?alt=media

If you would like to use the Golive logo, here it is:

spaces%2F-MWcvo1Q5iQLYT9dKP7d-855039963%2Fuploads%2Fgit-blob-1194947423043fd1a655a4f3682fc4a1506adb54%2F119439776%20(1).png?alt=media

After clicking on the “Create” button, you will get your “Incoming Webhook” URL. You can copy-paste it…

spaces%2F-MWcvo1Q5iQLYT9dKP7d-855039963%2Fuploads%2Fgit-blob-054e02f190e8d6d26c5c868f15c6f17f3dd3c4df%2F119439782.png?alt=media

…to your MS Teams Automation configuration page:

spaces%2F-MWcvo1Q5iQLYT9dKP7d-855039963%2Fuploads%2Fgit-blob-236c2d9e8888c823335109d22bad6199a5939419%2F119439788%20(2).png?alt=media

In order to test your Automation, choose an Example Environment and click on the Test button.

spaces%2F-MWcvo1Q5iQLYT9dKP7d-855039963%2Fuploads%2Fgit-blob-ded59bcbc4eecd04bbdca7e5e55e8f745f13c2f8%2F119439794%20(3)%20(1)%20(6)%20(2)%20(3)%20(3)%20(3)%20(4)%20(4)%20(4)%20(4).png?alt=media

Now you can Save and Activate your Automation!

spaces%2F-MWcvo1Q5iQLYT9dKP7d-855039963%2Fuploads%2Fgit-blob-32bb0add120f29686fd45f793e2418a13b9fdd30%2F119439800%20(2).png?alt=media

Custom Notifications

Enable the "Custom Message" toggle in order to customize content of your MS Teams notifications. You will be able to design your own custom MS Teams Adaptive Cards using dynamic content of Pebble Templates.

Start from the provided default template to build your own custom templates:

JSON
{
  "@context": "https://schema.org/extensions",
  "@type": "MessageCard",
  "themeColor": "e41b13",
  "title": "

{% autoescape "js" %}Updated Environment: {{environment.application.name}} {{environment.category.name}}{% endautoescape %}",
  "text": "{% autoescape "js" %}

<h2>What was changed?</h2>

<table>
{% for change in environmentChanges %}
<tr>
           {% if change.toString is not null %}
            {% set newValue = change.toString %}
          {% else %}
            {% set newValue = "-" %}
          {% endif %}
          {% if change.fromString is not null %}
            {% set value = newValue + " (was " + change.fromString + ")" %}
          {% endif %}
          <td>{{change.field}}</td><td>{{value}}</td>
</tr>
{% endfor %}
</table>

<h2>Details</h2>

<table>
<tr><td>URL:</td><td>{% if environment.url is not null %}<a target=\"_blank\" href=\"{{environment.url}}\">{{environment.url}}</a>{% else %}-{% endif %}</td></tr>
<tr><td>Status:</td><td>{% if environment.status is not null %}{{environment.status.name}}{% else %}-{% endif %}</td></tr>
<tr><td>Deployed:</td><td>{% if environment.deployment is not null %}{{environment.deployment.versionName}}{% else %}-{% endif %}</td></tr>
</table>

<h2>Attributes</h2>

<table>
{% for attribute in environment.attributes %}<tr><td>{{attribute.key}}:</td><td>{{attribute.value}}</td></tr>{% endfor %}
</table>

{% endautoescape %}


"
}

Microsoft provides an online designer tool to build your own MS Teams rich templates:

spaces%2F-MWcvo1Q5iQLYT9dKP7d-855039963%2Fuploads%2Fgit-blob-9eb7f7d4f70f9d22f0853a56abec7c11d9c6b1a5%2F119439812%20(2).png?alt=media

Useful Resources


https://pebbletemplates.io/


https://adaptivecards.io/designer/