# How to create a WorkflowGen connector for Microsoft Power Automate (Microsoft Flow)

**URL:** <https://discuss.workflowgen.com/t/how-to-create-a-workflowgen-connector-for-microsoft-power-automate-microsoft-flow/1563>\
**Category:** Integration\
**Created:** [January 22, 2020, 9:55pm UTC](https://discuss.workflowgen.com/t/how-to-create-a-workflowgen-connector-for-microsoft-power-automate-microsoft-flow/1563 "2020-01-22T21:55:15Z")\
**Posts on this page:** 6\
**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:** [January 22, 2020, 9:55pm UTC](https://discuss.workflowgen.com/t/how-to-create-a-workflowgen-connector-for-microsoft-power-automate-microsoft-flow/1563/1 "2020-01-22T21:55:15Z")

</div>

## Overview

Since [WorkflowGen version 7.17](https://discuss.workflowgen.com/t/workflowgen-7-17-0/1559), you can easily create a custom connector for Microsoft Power Automate (Microsoft Flow) using the new [OpenAPI v2 endpoints](https://docs.advantys.com/workflowgen-integration-guide/incoming-webhooks#openapi-v2-endpoints).

This connector will give you access to all WorkflowGen incoming webhook operations and will be simple to use in Microsoft Power Automate (Microsoft Flow).

### Example

 ![image](https://canada1.discourse-cdn.com/flex030/uploads/workflowgen/original/1X/ae499016e65a5b74dcfbfe393ebd09784273d061.png)

## Implementation

1. Go to [flow.microsoft.com](http://flow.microsoft.com). From the left menu, click **Data** , then click **Custom connectors**.  

2. In the right-hand corner, choose **New custom connector \> Import an OpenAPI from URL**.  
 ![image](https://canada1.discourse-cdn.com/flex030/uploads/workflowgen/original/1X/aee07b77183a30e05ddf00a26876745e870bca47.png)

3. Set a connector name and paste the following URL: `https://YOUR_SERVER/wfgen/hooks/openapi/v2`  

4. Click **Import** , then **Continue**.

5. You can set a connector icon and background color on the **General information** screen.  

6. Click **Create connector**.  
 ![image](https://canada1.discourse-cdn.com/flex030/uploads/workflowgen/original/1X/d681571cd6e9cb8755852bdb6295b2b1b2db4f7c.png)

You can now use this custom connector in Microsoft Power Automate (Microsoft Flow).

---

<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 22, 2020, 9:45pm UTC](https://discuss.workflowgen.com/t/how-to-create-a-workflowgen-connector-for-microsoft-power-automate-microsoft-flow/1563/2 "2020-06-22T21:45:43Z")

</div>

For the step to setup custom connector, I got the following message:

_We weren’t able to download the OpenAPI file from the provided URL. Please upload the file manually using the “Import from OpenAPI file” option._

![image](https://canada1.discourse-cdn.com/flex030/uploads/workflowgen/original/1X/78f1fd13a69f10c684afce1ee1d17dad8381b881.png)

How can I get the OpenAPI file from WFG hooks path? Am I missing something?

---

<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 23, 2020, 12:08pm UTC](https://discuss.workflowgen.com/t/how-to-create-a-workflowgen-connector-for-microsoft-power-automate-microsoft-flow/1563/3 "2020-06-23T12:08:20Z")

</div>

Hello Kevin,

You can go directly to the open API endpoint (WFGEN\_URL/wfgen/hooks/openapi/v2) and save the result as a file.

We will check why the file can’t be downloaded automatically.

---

<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, 12:30pm UTC](https://discuss.workflowgen.com/t/how-to-create-a-workflowgen-connector-for-microsoft-power-automate-microsoft-flow/1563/4 "2020-06-23T12:30:28Z")

</div>

Thanks Quentin. Figure out why. WFG instance was not using https connection. I am able to get the OpenAPI file now but I need to set WFG to https in order to add it as custom connector

---

<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 30, 2020, 2:00pm UTC](https://discuss.workflowgen.com/t/how-to-create-a-workflowgen-connector-for-microsoft-power-automate-microsoft-flow/1563/5 "2020-06-30T14:00:04Z")

</div>

Hi,

Is https a must to setup WFG hook custom connector?  
I tried exporting the openAPI file from wfgen/hooks/openapi/v2 and then import (to bypass https requirement). I was able to reach to the connector general page but when clicking on create connector I got the following error:

Specified swagger has the following errors: 'Definition is not valid. Error: 'Error : paths/~1addApplicationParameter/post/parameters/0/schema/properties/args/properties/input/required : The required property ‘isRequired’ is not defined in the object schema.  
’

---

<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:** [July 2, 2020, 2:30pm UTC](https://discuss.workflowgen.com/t/how-to-create-a-workflowgen-connector-for-microsoft-power-automate-microsoft-flow/1563/6 "2020-07-02T14:30:25Z")

</div>

Hi Kevin,

This is a known issue fixed in [7.19](https://discuss.workflowgen.com/t/workflowgen-7-19-0/).
