Microsoft Teams App Guide

Overview

Streamline collaboration by setting up automated Microsoft Teams notifications about Contentful entry events.

Features

  • Receive notifications about content entries being published, unpublished, created, deleted, archived and unarchived.

  • Configure notifications for any content type within your Contentful space.

  • Define applicable Microsoft Teams channels where you would like to receive notifications.

  • Specify entry actions including publish, unpublish, create, delete, archive and unarchive.

  • Edit notification details anytime.

Requirements

  • You must have permissions to add apps to a team in Microsoft Teams.

  • The Contentful app must be installed in Microsoft Teams and invited to the General channel of the team where you would like to receive notifications.

Usage

Setting up notifications about Contentful entry events involves the following steps:

  1. Install the Contentful app in Microsoft Teams

  2. Install the Microsoft Teams app in Contentful

  3. Configure notifications

Step 1: Install the Contentful app in Microsoft Teams

NOTE: The Contentful app must be installed in the General channel of the team(s) in Microsoft Teams where you would like messages to be sent.

To install the Contentful app in Microsoft teams:

  1. Navigate directly to the Contentful app installation page or within Microsoft Teams, navigate to the Apps tab in the left sidebar, search for “Contentful”, and click Add.

    Microsoft Teams App Store

  2. Click Add to a team on the installation page, and select the General channel for the team where you would like to receive notifications. Click Set up a bot to confirm.

    Microsoft Teams Contentful App InstallationMicrosoft Teams Contentful App Installation 2

  3. You are redirected to the General channel. A welcome message is displayed to confirm that you’ve installed the app.

    Microsoft Teams Welcome Message

Step 2: Install the Microsoft Teams app in Contentful

To install the Microsoft Teams app in Contentful:

  1. Log in to the Contentful web app.

  2. Go to the Apps tab and select Marketplace.

  3. Search for the Microsoft Teams app.You are redirected to the app installation and configuration screen.

  4. Click Connect Microsoft Account to authenticate with Microsoft. A modal is displayed where you must accept permissions that allow the app to read and save your Microsoft Tenant ID.

    Microsoft Teams Connect Account

  5. After you accept permissions and authenticate successfully, you will see the name of your Microsoft organization and a section where you can configure notifications.

    Microsoft Teams App Authenticated

Step 3: Configure notifications

You can select entry actions in Contentful you would like to be notified about, per content type.

To configure a notification:

  1. Click + Create Notification.

  2. For every notification you configure, you can:

    • Select the content type you want the events to be linked to.

    • Select the Microsoft Teams channel you want the notification to be sent to.

    • Select one or multiple  entry actions you want to be notified for.

  3. Click Create to save the configured notification. You can edit or delete a notification by clicking on the three-dot menu.

Microsoft Teams App Authenticated

Step 4: Test your configured notifications

After you have configured a notification, you can test it by clicking Edit on a notification. When you are viewing the details of the configured notification, you will see the Send test message button. Click this button to send a test notification to the configured channel in Microsoft Teams.

Microsoft Teams Send Test

Check your channel in Microsoft Teams to see the test message.

Microsoft Teams Test Message

Step 5: Send messages

Navigate to an entry of the content type you created a notification for. Trigger one of the events you selected in your notification configuration to see a message appear within your selected Microsoft Teams channel.

Microsoft Teams Message

Under the hood

Internally, the app will:

  1. Authenticate with Microsoft to associate your Microsoft Tenant ID with the app installation.

  2. Store the name and ID of the teams for which the Contentful app is installed into the general channel for that team.

  3. Ask you to configure notifications by selecting a content type, a channel in Microsoft Teams, and the entry events for which you would like to be notified.

  4. Allow you to test your configured notifications by sending a test message to a channel.

  5. Post a message in a specific format to the selected channel when an event occurs.

FAQ

Why do I not see my Microsoft Teams channel when configuring a notification?

If you do not see the channel where you want to send notifications, check that the Contentful app is installed in the correct channel in Microsoft Teams. The Contentful app for Microsoft Teams should be installed in the General channel of the team that contains the channel where you want notifications to be sent.

For example, if you want notifications to be sent to the “Bot channel” in a team called “CTFL”, the app should be added to the “General” channel of the “CTFL” team, rather than the “Bot channel” itself. Within Contentful, when you are configuring notifications, you will then have access to all of the channels within the team where you’ve installed the app.

Microsoft Teams General Channel

Known Limitations

  • Content entries that are unusually large (greater than 65kb) may fail to trigger MS Teams notifications. We are working to address this limitation and eventually support entries up to 2mb in size (the current maximum supported size of content entries).

Was this helpful?
add-circle arrow-right remove style-two-pin-marker subtract-circle remove