MS Teams

You can easily send such MS Teams notifications when something happens to your Environments:

Create an Automation

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

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”

Create a new “Incoming Webhook” Connector:

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:

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

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

…to your MS Teams Automation configuration page:

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

Now you can Save and Activate your Automation!

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:

"@context": "",
"@type": "MessageCard",
"themeColor": "e41b13",
"title": "{% autoescape "js" %}Updated Environment: {{}} {{}}{% endautoescape %}",
"text": "{% autoescape "js" %}
<h2>What was changed?</h2>
{% for change in environmentChanges %}
{% 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 %}
{% endfor %}
<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 %}{{}}{% else %}-{% endif %}</td></tr>
<tr><td>Deployed:</td><td>{% if environment.deployment is not null %}{{environment.deployment.versionName}}{% else %}-{% endif %}</td></tr>
{% for attribute in environment.attributes %}<tr><td>{{attribute.key}}:</td><td>{{attribute.value}}</td></tr>{% endfor %}
{% endautoescape %}"

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

Useful Resources