> ## Documentation Index
> Fetch the complete documentation index at: https://kb.mspprocess.com/llms.txt
> Use this file to discover all available pages before exploring further.

# Sending Messages to a Microsoft Teams Channel

> Introduction:Several features in the MSP Process platform can send messages to Microsoft Teams channels:When a new text message is sent to an SMS numberWhen…

### Introduction:

Several features in the MSP Process platform can send messages to Microsoft Teams channels:

* When a new text message is sent to an SMS number
* When a new Live Chat is created
* When a new Client Portal chat is created
* When a Workflow in MSP Process is triggered

The goal of this KB article is to walk you through how to setup a Workflow in Microsoft Teams that can accept the messages from the MSP Process platform, and to configure MSP Process so it knows about the Microsoft Teams channel.

### Launching the Workflows app in Microsoft Teams:

In the Microsoft Teams app, launch the Workflows feature by clicking on the **...** menu item, and searching for "Workflows":

![](https://mintcdn.com/triggr/o9r5jEtjdR2oUtiW/images/msp-process-kb/bdd1f9a640da.webp?fit=max\&auto=format\&n=o9r5jEtjdR2oUtiW\&q=85\&s=264604621277f0b70ef633f60dcdb994)

### Creating a new Workflow:

1. In the Workflows app, click the **Build from Scratch** button

2. ![](https://mintcdn.com/triggr/qgn0c5cLkGKqcauq/images/msp-process-kb/86c4172b24b9.webp?fit=max\&auto=format\&n=qgn0c5cLkGKqcauq\&q=85\&s=94bc669c441cbb89eea63694b5736dcf)

3. Open the *select a trigger* option, and choose the *Build with Power Automate to see more triggers* option:

4. ![](https://mintcdn.com/triggr/dXDzJtUmPBaHtkPV/images/msp-process-kb/ff130bf4c2ec.webp?fit=max\&auto=format\&n=dXDzJtUmPBaHtkPV\&q=85\&s=e88e40f1c34419bbdad47aff1604253f)

5. In the pop-up window that appears, click the **Go to Power Automate** button

6. ![](https://mintcdn.com/triggr/o9r5jEtjdR2oUtiW/images/msp-process-kb/d2d981790989.webp?fit=max\&auto=format\&n=o9r5jEtjdR2oUtiW\&q=85\&s=a251dc43fe8883254c8e82c6b97be72b)

7. Search for the "When a Teams webhook request is received" trigger, and click on it to add it to your workflow:

8. ![](https://mintcdn.com/triggr/o9r5jEtjdR2oUtiW/images/msp-process-kb/aa7948a966a0.webp?fit=max\&auto=format\&n=o9r5jEtjdR2oUtiW\&q=85\&s=cbba8d62702df7ef58e299bf586bff71)

9. Configure the *When a Teams webhook request is received* trigger so that anyone can trigger the flow:

10. ![](https://mintcdn.com/triggr/2kaOQdWPjLF3xX8p/images/msp-process-kb/0bd5bf5d3951.webp?fit=max\&auto=format\&n=2kaOQdWPjLF3xX8p\&q=85\&s=133765f2f136c68a51ae2f3bac3eb7dd)

11. Click the **New Step** button, search for the *Parse JSON* action, and click on it to add it to your workflow:

12. ![](https://mintcdn.com/triggr/qgn0c5cLkGKqcauq/images/msp-process-kb/8a5707026b60.webp?fit=max\&auto=format\&n=qgn0c5cLkGKqcauq\&q=85\&s=93e6a1b5b4ccf99302d1de797b1fb887)

13. Power Automate is weird; we cannot properly configure the *Parse JSON* action until we've saved and closed this workflow, and then reopened it - so for this second, let's configure it like this:

14. **Content:** type in "placeholder text"

15. **Schema (what you see is a screenshot; to copy/paste it, head on down to the bottom of this KB article; the raw JSON is available there):**

16. ![](https://mintcdn.com/triggr/qgn0c5cLkGKqcauq/images/msp-process-kb/9fd1befb733a.webp?fit=max\&auto=format\&n=qgn0c5cLkGKqcauq\&q=85\&s=bf9b51a5bdbe53fb92340975c586c77d)

17. **Here's what it'll look like:**

18. ![](https://mintcdn.com/triggr/qgn0c5cLkGKqcauq/images/msp-process-kb/9120e4c8bd7b.webp?fit=max\&auto=format\&n=qgn0c5cLkGKqcauq\&q=85\&s=20f07096072f0d3d1187a09d4c95838e)

19. Click the **New Step** button, search for "post message in a chat or channel", and click on the *Post message in a chat or channel* action to add it to your workflow:

20. ![](https://mintcdn.com/triggr/-njaXAnAb5AWpJCy/images/msp-process-kb/7513f7cfd149.webp?fit=max\&auto=format\&n=-njaXAnAb5AWpJCy\&q=85\&s=29b290168b7576c884b43beecf850c69)

21. You're going to configure the Post message in a chat or channel action to post into the Team/Channel combination of your choosing:

22. ![](https://mintcdn.com/triggr/qgn0c5cLkGKqcauq/images/msp-process-kb/99003c0b5a92.webp?fit=max\&auto=format\&n=qgn0c5cLkGKqcauq\&q=85\&s=da846e7487106a20fa6d08c3baa7e502)

23. You're also going to configure the Post message in a chat or channel action to use the text value from the Parse JSON action as the body of the message:

24. ![](https://mintcdn.com/triggr/-njaXAnAb5AWpJCy/images/msp-process-kb/58be0b6eb486.webp?fit=max\&auto=format\&n=-njaXAnAb5AWpJCy\&q=85\&s=47bceeb93a7d296c35fe2051281c876b)

25. Click the **Save** button to save your workflow; it'll take 15-20 seconds to finish the initial save

26. Close the workflow by clicking the **X** button in the top right-hand corner

### Reopening the Workflow and Completing Its Setup

1. Within the Workflows app in Microsoft Teams, reopen the workflow you just created

2. Open the *Parse JSON* action

3. In the *Content* field, remove that "placeholder text" value that you typed in earlier

4. Choose the *Body* variable from the *When a Teams webhook request is received* trigger as the input for the *Content* field:

5. ![](https://mintcdn.com/triggr/-njaXAnAb5AWpJCy/images/msp-process-kb/5a4a5ac45a04.webp?fit=max\&auto=format\&n=-njaXAnAb5AWpJCy\&q=85\&s=e6fc14d1d81d3fce2cc2d09cd05591d7)

6. Click the **Save** button to save your workflow

### Configuring a Microsoft Teams Connection in MSP Process:

1. Login to the MSP Process UI ([https://app.mspprocess.com](https://app.mspprocess.com)) as an Admin-level user

2. Navigate to the **Settings -> Account Settings -> Teams Connections** page

3. Click the **Add** button:

4.

5. Fill in the two required fields:

6. Give the connection a name

7. In the **URL** field, paste the URL from the Microsoft Teams workflow - the URL can be found in the *When a Teams webhook request is received* action:

8.

9. Click the **Test** button to ensure that the connection to your Microsoft Teams workflow is correctly setup - you should see the message "Hello, World" in the Microsoft Teams channel you specified in the Workflow.

10. Click the **Submit** button to save the connection

### Parse JSON Schema:

Here's the JSON you'll want to copy and paste into the *Schema* field of your *Parse JSON* action:

\{

   "type": "object",

   "properties": \{

       "text": \{

           "type": "string"

       }

   }

}


This documentation is built and hosted on [Mintlify](https://mintlify.com), a developer documentation platform.