Custom Integration for any app with Microsoft Power Automate
Using Microsoft Power Automate to sync Torii custom integration data
This guide documents an example of a custom integration where a Power Automate Flow is used to automate the 4 API calls required to sync a custom integration.
The example:
- Receives a POST request from Postman containing users and licenses in the required Torii JSON structure and automates the 4 API calls sync the integration.
- Requires some configuration within the flow for your Torii API key and app account id as described in the steps below.
The Postman collection accessible below can trigger the flow. The collection should be imported into your Postman workspace.
Setting up the flow for your environment
- Download the shared version of the flow here.
- Import the flow into your Microsoft Power Automate account.
- For the Get URL action, expand advanced options and update the value of the the authentication token by adding your API key after Bearer.
For the Get File ID action, expand advanced options and update the value of the authentication token by adding your API key after Bearer.
For the Compose request body for sync integration request update the value for idAppAccount with the app account id for the app you are creating a custom integration for.
For the Sync Integration action, expand advanced options and update the value of the authentication token by adding your API key after Bearer.
Triggering the flow
The recipe can be trigged using the Postman collection provided above. The collection should be imported into your workspace.
- Copy the URL from the HTTP POST URL field from the first step in the flow.
- Paste the URL into the Power Automate request example in Postman.
- Click Send to send the request.
Updated about 1 year ago