Setup the Power Automate connector

<< Click to Display Table of Contents >>

Navigation:  Bizagi Studio > Integrating external applications from Bizagi > Power Automate Connector >

Setup the Power Automate connector

Overview

Once you have created the flow in Power Automate, you can trigger it using HTTP calls from Bizagi. To do so, Bizagi provides a connector template to let you configure only the inputs of your flow.

 

Before you Start

You need to consider the following information:

You need a Power Automate flow created which is triggered through HTTP calls. Refer to create the Power Automate flow for more information.

Bizagi uses synchronous communication with Power Automate, so the connector does not allow a response.

The inputs queries and body are mandatory, do not remove it from the connector

 

Setup Steps

To setup the Power Automate connector, follow these steps:

 

1. Setup the connector template

2. Configure the connector in Bizagi Studio

3. Configure the trigger of your flow

 

1. Setup the connector template

1. In Bizagi Studio, go to Tools tab and select API connector.

 

PowerAutomate_35

 

2. The Bizagi API Connectors windows appears, select Build your own API Connector.

 

PowerAutomate_36

 

3. Select Power Automate connector and click Generate connector.

 

PowerAutomate_37

 

In the Structure panel, expand the inputs until you reach body. Here, you need to create the input parameters of your connector. You can create them manually by clicking the plus icon or you can upload a json sample. This json sample can be created from the sample you used during the creation of the flow.

To upload a sample file, make sure you click the body field and then, click Autogenerate.

 

PowerAutomate_38

 

Select the json file and click Open.

 

PowerAutomate_39

 

The input parameters appear under the body object.

 

PowerAutomate_40

 

If your flow uses parameters from the Query URL, you can configure them in the queries object.

 

PowerAutomate_41

 

Click Save to finish the connector setup.

 

2. Configure the connector in Bizagi Studio

Once you have tailored the connector, you need to configure it to let your Bizagi project trigger the flow.

 

Back in Power Automate, open the first step of your flow and copy the HTTP URL.

 

PowerAutomate_42

 

The URL copied has the following structure:

 

PowerAutomate_43

 

The part of the URL highlighted in yellow is the Trigger URL of the flow, and the one highlighted in blue is the signature that let you authenticate in the flow.

 

In Bizagi Studio, go to Expert view and select External Systems. Then, go to Power Automate in the API connectors node and right click the version of this connector.

Click New system configuration.

 

PowerAutomate_44

 

Set the Custom Authentication method, and provide the information of your Power Automate flow.

 

PowerAutomate_45

 

Where:

 

TRIGGER_URL: Trigger URL of your flow as explained before.

HTTP_METHOD: HTTP method used in the first step of your flow.

SIGNATURE: authentication signature of your flow as explained before.

 

3. Configure the trigger of your flow

To trigger your flow from Bizagi, you need to invoke the connector somewhere in your process. As a good practice we recommend invoking connectors using service tasks configured as asynchronous activities. This is an example of how you can model the invocation of the Power Automate connector:

 

PowerAutomate_46

 

Create a Connector action in the service task where you want to trigger the flow. Then, select the Power Automate connector in the wizard.

 

PowerAutomate_47

 

Click Next.

 

Map the inputs of your flow.

 

PowerAutomate_48

 

As no response is expected from Power Automate, you can click Next, until the configuration of your connector is ready.

 

Finally, you can test the Power Automate connector by running your Bizagi process and review that the Power Automate flow has been executed correctly.

 

PowerAutomate_49

 

PowerAutomate_50