Custom connector to get flow run history

Posted by

I’ve created a custom connector to get the run history of a specified flow in a specified environment.

Please follow the instructions from the Power Apps blog post for the app registration. Add the Activity.Read.All and Flows.Read.All permissions instead.

Download and import the swagger file for the custom connector.  Enter Client Id, Client Secret and Resource URL: https://service.flow.microsoft.com/. There’s one action, Get Flow Runs.

The request has the environment id, flow id, and api-version as input.

Test operation is successful with the following result.

Now I’m able to use this action of the custom connector to get the flow run history and process the data.

8 comments

  1. Does this work for Flows where you are not the owner? I am trying to get a list of Flow Run History for all Flows in the environment and this connector works for my own Flows but I get 403 back if I try other people’s Flows.

  2. Hi, Is this custom connector still works ?

    When I tried to test api call it is giving me the error as
    {
    “error”: {
    “code”: “ClientScopeAuthorizationFailed”,
    “message”: “The x-ms-client-scope header must not be null or empty.”
    }
    }

  3. Hi Stefan,
    I’m trying to create your request from postman. But I don’t know how to authenticate. I’m receiving error message like below. I’m trying to find information from another articles but still I’m on same place.

    Please, can you help me?

    AADSTS700016: Application with identifier ‘XXXXXXXXXXXXXX’ was not found in the directory ‘XXXXXXXXXXXXXX’. This can happen if the application has not been installed by the administrator of the tenant or consented to by any user in the tenant. You may have sent your authentication request to the wrong tenant.

Leave a Reply

Your email address will not be published. Required fields are marked *