Skip to main content
Version: 1.8.5

CREATING A MICROSOFT TEAMS CONNECTION

Available since ThingPark X IoT Flow 1.6.1.

The Microsoft Teams connector publishes the uplinks of your devices as messages in a Microsoft Teams channel, through an incoming webhook of the channel.

The data follows this path: LoRaWAN® device → ThingPark Enterprise → ThingPark X IoT Flow connection → Microsoft Teams channel.

This page is a minimal setup example to get the Microsoft Teams connector working. You need an active Microsoft Teams account before you create the connection.

Collecting Expected Information​

Parameters required

UI FieldDescription
NameName of the connection.
Webhook URLURL of the incoming webhook of the Microsoft Teams channel, private or not. See Webhook URL.
DescriptionOptional description of the connection.

Webhook URL​

Follow these steps to get the webhook URL.

  1. Open your Microsoft Teams application. Click Teams. Microsoft Teams

  2. Click the three dots (...) next to the team where you want to add your channel. Click Add a new channel. Add a channel

  3. Enter a name and the privacy of your channel, then click Create. New channel form

  4. Click the three dots (...) at the top right corner. Select Connectors. Channel connectors

  5. Select Incoming Webhook. Incoming Webhook

  6. Enter a name for your webhook and click Create. Configure the webhook

  7. Copy the displayed webhook URL and click Done. Copy the webhook URL

  8. A message in the channel confirms that the webhook has been created. Webhook created

Creating a Connection With UI​

  1. In ThingPark Enterprise, click Connections -> + Add Connection -> ThingPark X IoT Flow. Add a ThingPark X IoT Flow connection in ThingPark Enterprise

  2. In ThingPark X IoT Flow, click Microsoft Teams in the list of connectors. Select the Microsoft Teams connector

  3. Fill in the form:

    • Name: a clear name for the connection, for example My Teams Connection.
    • Webhook URL: the webhook URL copied from the Microsoft Teams channel.
    • Description: optional. Set your Microsoft Teams connection
  4. Click Create. A notification confirms that the connection has been created, and the connection details open.

  5. In the connection details, check that the connection is OPENED (see Connection States).

Note

Parameters marked with * are mandatory.

Changing the Settings After Creation​

You can change settings such as the webhook URL after the creation of the connection.

  1. In the connection details, click the Edit button next to the setting to change.

  2. Enter the new value and click the Confirm button, then confirm the update.

A notification confirms that the setting is updated.

Creating a Connection With API​

The creation of a connection establishes a bidirectional messaging transport link between ThingPark X IoT Flow and the cloud provider. Events and commands from multiple Devices will be multiplexed over this messaging transport link.

To do this, you need to use the Connections group resource:

  • POST /connections to create a new Connection instance
  • PUT /connections to update a Connection instance
  • DELETE /connections to delete a Connection instance
Note

We follow the REST-full API pattern, when updating configuration properties for a connection resource. Thus, you must also provide the whole configuration again.

Example for creation of a new connection instance:

POST /connections
{
"connectorId": "actility-microsoft-teams",
"name": "Actility Teams uplinks",
"configuration": {
"destinationUrl": "{YOUR-WEBHOOK-URL}"
}
}

The following table lists the properties applicable to a connection instance.

JSON FieldDescription
connectorIdMust be set to actility-microsoft-teams for the Microsoft Teams platform.
configuration/destinationUrlWebhook URL of the Microsoft Teams channel, private or not.
Important note

All properties are not present in this example. You can check the rest of these properties in the common parameters section.

Associating Devices With the Connection​

In ThingPark Enterprise, open Devices, select a device, and add the connection to the Connections of the device. You can also select the connection when you create a device, or for many devices at once with a CSV file in Devices -> Bulk Operations.

Displaying Information to Know if It Worked​

Open the Microsoft Teams channel where you created the webhook. The uplinks of your devices appear as messages in the channel. Uplinks in the Microsoft Teams channel

Limitations​

See the Limits and specifications for Microsoft Teams for more information.

Troubleshooting​

There is no known issue.