Post a Teams chat message when a new BindTuning Alert has been added

BindTuning Alerts web part provides you with an easy-to-use, highly customizable, and visually striking way to bring your users' attention to new notifications that could, otherwise, be easily missed.

Considering this product to be highly versatile, in certain scenarios you may want to, not only display your information on your concrete SharePoint page and/or Microsoft Teams Tab but also post a Teams chat message, so your users are able to quickly check on new information. 

This article elaborates on how you are able to achieve this same purpose, by incorporating BindTuning's product range and Microsoft's Power Platforms. 

Before we begin

This article utilizes several distinctive technologies: 

  • BindTuning Alerts Web Part, allowing you to display a notification-like popup and/or container populated with important information; 
  • We leverage Microsoft's Power Automate, due to it being a low-code platform and its vast range of pre-existent connectors.

Introductory notes

This article describes how to automatically post a chat message on a specific Microsoft Teams Team when a new entry is added to an Alerts web part on your SharePoint and/or Microsoft Teams infrastructure.

Note: Albeit we demoing the procedure on the Alerts web part, you'll be able to adapt the proposed steps, so as for them to work with other BindTuning products. 

This article will be subdivided into two distinct steps: 

  1. Create and set up your BindTuning Alerts Web Part
  2. Create and set up your Power Automate Flow.

Create and set up your BindTuning Alerts Web Part

The first step constitutes adding and configuring your Alerts Web Part. To do so, follow the steps below: 

Add to SharePoint

  1. Add a BindTuning Alerts Web Part to your SharePoint page; 
  2. Select Configure (or click the pencil icon) and, from the menu select Create new BT Alerts List;

create-list.PNG

The list has been successfully associated with the Alerts Web Part. After completing this same procedure, we're free to start adding our own content, by mousing over the Web Part and clicking on the plus (+) icon on the Web Part zone. 

This will open the Web Part form, through which you'll be able to create your new alert. Below follows an exemplificative alert: 

alert.PNG

After creating the alert, we will now see it being displayed as a pop-up or, alternatively, as an entry on the web part zone.

alert-configured.PNG

Add to Teams

  1. Access your required Team
  2. Navigate to one Channel and add a new tab (+); 
  3. Select BindTuning Alerts

    add_tab.png

  4. On the Web Part Properties panel, select Create new BT Alerts List.

    create-list.PNG

The list has been successfully associated with the Alerts Web Part. After completing this same procedure, we're free to start adding our own content, by mousing over the Web Part and clicking on the plus (+) icon on the Web Part zone. 

This will open the Web Part form, through which you'll be able to create your new alert. Below follows an exemplificative alert: 

alert.PNG

After creating the alert, we will now see it being displayed on your new tab.

alert.PNG

 

Create and set up your Power Automate Flow

Considering our Alerts web part to have been configured, we can now move to creating a Power Automate Flow, which will post a Teams chat message, as soon as a new Alerts entry is created and/or modified. To do so, follow the steps below: 

  1. Access your Power Automate area and select Create;
  2. Under Start from Blank, select Automated cloud flow
  3. When prompted, give your flow a name and select the trigger When an item is created or modified;
  4. Hit Create;

flow-template.PNG

You'll be redirected to the flow maker area, where we will be able to further configure our flow. 

On your When an item is created or modified, pass the values for: 

  • Site Address - The Site Collection where you have added the Alerts Web part; 
  • List Name - The list you have created on the Alerts Web Part (i.e, BT-Alerts).

sharepoint_trigger.PNG

After configuring our first step, select + New Step and search for Post a message (V3), under the Microsoft Teams. 

  1. Under Team, select from the available Teams list; 
  2. Under Channel, pass the corresponding Channel where the massage should display;
  3. Under Message, we can create our post template, where we will be passing the following information: 
    1. A template message; 
    2.  The Alert title we had previously configured. 

Note: All the above-mentioned elements can be automatically retrieved when selecting Add dynamic content.

After all the steps have been completed, you should have something similar to the model below: 

full_flow.PNG

As soon as the steps above have been finalized, when adding or modifying an alert on our Alerts web part, the corresponding users will be notified via Microsoft Teams. 

teams_message.PNG

 

Have more questions? Submit a request

Comments

BindTuning logo
Copyright Ⓒ 2021 Bind.
All rights reserved.
Privacy Policy
Cookie Policy
BindTuning
              Linkedin BindTuning Twitter BindTuning YouTube BindTuning Instagram BindTuning
              Facebook
Powered by Zendesk