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.

Run in Postman

Setting up the flow for your environment

  1. Download the shared version of the flow here.
  2. Import the flow into your Microsoft Power Automate account.
  3. For the Get URL action, expand advanced options and update the value of the the authentication token by adding your API key after Bearer.

  4. For the Get File ID action, expand advanced options and update the value of the authentication token by adding your API key after Bearer.

  5. 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.

  6. 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.

  1. Copy the URL from the HTTP POST URL field from the first step in the flow.
  1. Paste the URL into the Power Automate request example in Postman.
  1. Click Send to send the request.