Introduction

These instructions are provided to you as seen.


SmartFlo is all about driving business processes from your meetings. This document will show you an example where you integrate SmartFlo and post a message within a specific Microsoft Team’s Channel.


This is a simple example but one which we are asked for regularly so we thought we would deliver you a solution using the Power Platform that you can use.

 

Pre-requisites

You will need to have Microsoft 365 and access to a Power Platform environment. You will need to have a license for Power Automate Premium as well. 

Installing and Configuring the Solution

 

The first step is to download the solution from our iThink 365 SmartFlo Repository, found here:

https://github.com/ithinksharepoint/smartflo/blob/main/smartflo-teams-integration/README.md

Find the latest release, click the link and choose to download the zip file.

A screenshot of a computer

AI-generated content may be incorrect.

 

 

Next

  • Browse to https://make.powerapps.com
  • Choose the environment that you wish to load the solution into and is licensed. If you have a production environment, then the suggest is to use that.
  • Choose Solutions from the right-hand side.

A screenshot of a computer

AI-generated content may be incorrect.

  • Click Import solution

A screenshot of a computer

AI-generated content may be incorrect.

  • Click Browse
  • Choose the solution file that you downloaded.

A screenshot of a computer

AI-generated content may be incorrect.

  • Click Next
  • You will be presented with the details of the solution.
  • Click Next.
  • Configure the connection to Microsoft Teams by clicking on the …
  • If a connection already exists then choose otherwise to click add connection and fill in your Microsoft Teams details.

A screenshot of a computer

AI-generated content may be incorrect.

  • Click Next
  • Provide the Microsoft Teams Channel ID and Team Id.
  • To get the Microsoft Team Id and Channel Id, do the following
    1. Open Microsoft Teams
    2. Click Chat
    3. Search for the Team.
    4. Choose the Team and Channel
    5. Click on the … and choose Get link to channel

A screenshot of a computer

AI-generated content may be incorrect.

The package will be imported.

A black and white text

AI-generated content may be incorrect.

Once completed you will see the message.

A screenshot of a search engine

AI-generated content may be incorrect. 

Configure SmartFlo to call the Power Automate Cloud Flow

 

The following section will set up a SmartFlo template to call the Power Automate Cloud Flow.

We need the webhook URL from Cloud Flow to tell SmartFlo how to communicate with it.

Let’s show you how to do this.

 

From where you imported the solution.

A screenshot of a software

AI-generated content may be incorrect.

  • Click on the All Option
  • Click on SmartFlo to Microsoft Teams Integration

A screenshot of a computer

AI-generated content may be incorrect.

  • Click on the “Post Message from SmartFlo to Microsoft Teams Channel
  • Click Edit at the top of the window.

A screenshot of a computer

AI-generated content may be incorrect.

  • Find the “When a HTTP request is received”.
  • Click on it to expand it.
  • Click on the copy icon next to HTTP POST URL

A screenshot of a computer

AI-generated content may be incorrect.

Armed with the URL

  • Switch to Microsoft Teams.
  • Open the Calendar App.

A screenshot of a phone

AI-generated content may be incorrect.

  • Find the meeting you wish to configure.
  • Open SmartFlo

A screenshot of a computer

AI-generated content may be incorrect.

  • Click on the book icon and edit the template that you wish to configure.

A screenshot of a computer screen

AI-generated content may be incorrect.

  • Click on the edit button next to the template you wish to edit.

A screenshot of a computer

AI-generated content may be incorrect.

  • Scroll down the left side of the edit template window if you need to
  • Paste in the HTTP POST URL from the Power Automate Cloud Flow into the Webhook URL.

A screenshot of a computer

AI-generated content may be incorrect.

  • Click Save Changes.

You are now ready to run the meeting template to test out the integration with Microsoft Teams.

Improving the Teams Message Format

Here is an example of the message that appears in Microsoft Teams.

A screenshot of a computer

AI-generated content may be incorrect.

As you can see the message that is put into Microsoft Teams is not in the format that you want but that is easily changed.

Why did we do this?

We had to do it this way because we wanted to allow you to use this solution for any type of SmartFlo integration. Every SmartFlo template is going to put through different information.

 

To change it we need to go back to Power Automate and make some changes to the Cloud Flow so that it can detect the format of the message and then use that.

Let’s configure the Cloud Flow.

  • Browse to https://make.powerapps.com
  • Choose the environment that you installed the solution into.
  • Choose Solutions from the right-hand side.
  • Click on All
  • Choose the SmartFlo to Microsoft Teams Integration
  • Click on Post Message From SmartFlo to Microsoft Teams Channel

A screenshot of a computer

AI-generated content may be incorrect.

We need to describe what information is being sent to Power Automate.

To do that do the following:

  • Ensure you have tested the webhook by running the template in SmartFlo.
  • Look at the bottom of the Cloud Flow screen and you will see a section “28-day run history”.
  • You should see an entry and hopefully it will say succeeded.
  • Click on the entry

A screenshot of a computer

AI-generated content may be incorrect.

  • Find the “When a HTTP requested is received” and click on it to expand.
  • Under OUTPUTS
  • Select everything that is in the Body window as shown below.

A screenshot of a computer

AI-generated content may be incorrect.

  • Copy all the text, this is a JSON string.
  • Now click on Edit.
  • Expand the “When a HTTP request is received”
  • Click on “Use sample payload to generate schema”

A screenshot of a computer

AI-generated content may be incorrect.

  • The “Enter or paste a sample JSON payload” window will appear. 
  • Paste your text into the window.

A screenshot of a computer

AI-generated content may be incorrect.

  • Click Done.

This will create a JSON schema which will help us pick out the information and insert into the Microsoft Teams message.

A screen shot of a computer

AI-generated content may be incorrect.

Now, scroll down and expand the “Post Message From SmartFlo to Microsoft Teams”

Update the *Message text box to display the message in Microsoft Teams as you would like!

You will likely want to remove the Body parameter and then update and choose the fields that have the information that you wish to input in the message.

Use what we have done below for inspiration.

A screenshot of a computer

AI-generated content may be incorrect.

Change this to 

A screenshot of a chat

AI-generated content may be incorrect.

  • Click Save

Now, retry the SmartFlo template!

Here is how the new message format looks in Microsoft Teams.

A screenshot of a document

AI-generated content may be incorrect.

Much better!