# WorkflowGen and Teams integration with Microsoft Power Automate

**URL:** <https://discuss.workflowgen.com/t/workflowgen-and-teams-integration-with-microsoft-power-automate/1631>\
**Category:** Integration\
**Created:** [May 8, 2020, 7:07pm UTC](https://discuss.workflowgen.com/t/workflowgen-and-teams-integration-with-microsoft-power-automate/1631 "2020-05-08T19:07:05Z")\
**Posts on this page:** 3\
**Page:** 1

<div class="post-metadata">

**Author:** ![qpomarel](https://yyz2.discourse-cdn.com/flex030/user_avatar/discuss.workflowgen.com/qpomarel/32/262_2.png) [@qpomarel](https://discuss.workflowgen.com/u/qpomarel)\
**Post date:** [May 8, 2020, 7:07pm UTC](https://discuss.workflowgen.com/t/workflowgen-and-teams-integration-with-microsoft-power-automate/1631/1 "2020-05-08T19:07:05Z")

</div>

This article will show you how to use Microsoft Teams to validate a request in WorkflowGen.

Click the link to watch the video demonstration: [English](https://www.youtube.com/watch?v=77iZ6Xe8uw4) / [Français](https://www.youtube.com/watch?v=NrZTaJ3xy24)

## Prerequisites

- WorkflowGen 7.17 or later
- Administrator access to Microsoft Teams
- [WorkflowGen Hooks connector](https://discuss.workflowgen.com/t/how-to-create-a-workflowgen-connector-for-microsoft-power-automate-microsoft-flow/)
- Microsoft 365 Plan with Power Automate

## Power Automate configuration

### Step 1: Create a new connection to Teams

1. Go to [flow.microsoft.com](http://flow.microsoft.com). From the left menu, click **Data** , then click **Connections**.  
  
 ![image](https://canada1.discourse-cdn.com/flex030/uploads/workflowgen/original/1X/74cdc5e4f9696f7313a2ef43f8cfa28d57565a6b.png)

2. Click **New connection**.  
  
 ![image](https://canada1.discourse-cdn.com/flex030/uploads/workflowgen/original/1X/bc5eed18473bbd59da288137ab5cc30d660ec013.png)

3. Search for **Microsoft Teams**.  
  
 ![image](https://canada1.discourse-cdn.com/flex030/uploads/workflowgen/original/1X/d7210b8f08f3430331e9dea27adbba7a8a543670.png)

4. Click **Create** and connect with your Microsoft account.

### Step 2: Create a new connection to WorkflowGen

1. Go to [flow.microsoft.com](http://flow.microsoft.com). From the left menu, click **Data** , then click **Connections**.  
  
 ![image](https://canada1.discourse-cdn.com/flex030/uploads/workflowgen/original/1X/74cdc5e4f9696f7313a2ef43f8cfa28d57565a6b.png)

2. Click **New connection**.  
  
 ![image](https://canada1.discourse-cdn.com/flex030/uploads/workflowgen/original/1X/bc5eed18473bbd59da288137ab5cc30d660ec013.png)

3. Search for your custom WorkflowGen connector.

4. Set the hooks token created on your WorkflowGen instance.  
  
 ![image](https://canada1.discourse-cdn.com/flex030/uploads/workflowgen/original/1X/a795e928713e3c409a8239f890b6776e03f9d330.png)

### Step 3: Create the Purchase request - Teams flow

1. Go to [flow.microsoft.com](http://flow.microsoft.com). From the left menu, click **My flows** , then click **Import**.  
  
 ![image](https://canada1.discourse-cdn.com/flex030/uploads/workflowgen/original/1X/fe9b173d074fdd94127291f75218a36696a8baad.png)

2. Download the `PurchaseRequest-Teams.zip` package available [here](https://workflowgendownload.blob.core.windows.net/forum/WorkflowGen-and-Teams-integration-with-Microsoft-Power-Automate/PurchaseRequest-Teams.zip) and import it.

3. For each related resource, click **Select during import**.  

4. Set the right connection and then click **Import**.  

5. Go back to **My flow** and refresh the page. Your imported flow should appear.  

6. Select the created flow, then click **Edit**.  
  
 ![image](https://canada1.discourse-cdn.com/flex030/uploads/workflowgen/original/1X/bbc5bfc0486ac6b26e1091a0acf928cb4b459acd.png)

7. Click on the first action, **When a HTTP request is received** , and copy the **HTTP POST URL** , which you’ll need to configure WorkflowGen.  
  
 ![image](https://canada1.discourse-cdn.com/flex030/uploads/workflowgen/original/1X/d0883bf91d30fa121e3ccf9ae2e9bdadcac5950c.png)

## WorkflowGen configuration

1. In the WorkflowGen Administration Module, import the [PURCHASE\_REQUEST\_TEAMS](https://workflowgendownload.blob.core.windows.net/forum/WorkflowGen-and-Teams-integration-with-Microsoft-Power-Automate/PURCHASE_REQUEST_TEAMSv1.xml) process.

2. In the Workflow Designer, click the `SEND_ACTION_TO_TEAMS` action.

3. On the **Parameters** tab in the **Edit action** panel, click the `APP_URL` parameter.

4. Add the URL that you copied from Power Automate earlier as a text value to send.  

5. The manager to notify is predefined, so you need to change the user in the `user` parameter and set your email address.

---

<div class="post-metadata">

**Author:** ![kevin.lee](https://avatars.discourse-cdn.com/v4/letter/k/65b543/32.png) [@kevin.lee](https://discuss.workflowgen.com/u/kevin.lee)\
**Post date:** [June 23, 2020, 4:38pm UTC](https://discuss.workflowgen.com/t/workflowgen-and-teams-integration-with-microsoft-power-automate/1631/2 "2020-06-23T16:38:37Z")

</div>

Hi,

in Step 3: Create the Purchase request - Teams flow it mentioned importing the MS Flow from PurchaseRequest-Teams.zip.

Do we expect to create the integration always based on this MS flows template?  
Also the first step is using HTTP Request and that trigger requires premium plans of Power Automate. What other option we can use?

---

<div class="post-metadata">

**Author:** ![qpomarel](https://yyz2.discourse-cdn.com/flex030/user_avatar/discuss.workflowgen.com/qpomarel/32/262_2.png) [@qpomarel](https://discuss.workflowgen.com/u/qpomarel)\
**Post date:** [June 25, 2020, 8:49pm UTC](https://discuss.workflowgen.com/t/workflowgen-and-teams-integration-with-microsoft-power-automate/1631/4 "2020-06-25T20:49:05Z")

</div>

Hi Kevin,

Microsoft Power Automate in this integration example is here to simplify the connection between WorkflowGen and Teams. The other solution is to use the Microsoft Graph API ([https://developer.microsoft.com/en-us/graph](https://developer.microsoft.com/en-us/graph)), we have done integration examples with other Microsoft tools ([Integrate WorkflowGen with Microsoft Office 365](https://discuss.workflowgen.com/t/integrate-workflowgen-with-microsoft-office-365/1244)).

According to the Microsoft FAQ, only the free Power automate version does not include premium connectors.  
Power automate is included in the most Microsoft 365 Plans, so with premium connectors.

In that case, a plan with Power Automate is a prerequisite, I will add it to the topic.
