How to Call Power Automate Flow with ‘When a HTTP request is received’ Trigger Set to ‘Any user in my tenant’

When I set up a Power Automate HTTP request trigger with “Any user in my tenant” authentication, I wasn’t sure how to call this flow from other flows. Here’s what I discovered through my investigation.

スポンサーリンク

Objective

I wanted to create a flow with the “When a HTTP request is received” trigger set to “Any user in my tenant”:
HTTP trigger settings showing Any user in my tenant option
When trying to call this flow from another flow using the standard method:
Attempting to call the flow
It results in this error:
Error message displayed

The goal is to enable this flow to be called from any other flow within my tenant.

Method 1: Using Entra ID’s “Send an HTTP request” Action

The first method involves using the “Send an HTTP request” action from Entra ID.

Select the action with “(pre-authorized)” from the Entra ID actions:
Selecting pre-authorized Entra ID action
Create a connection as shown in the image:
Base Resource URL: The beginning part of the HTTP request trigger URL
Entra ID Resource URI: https://service.flow.microsoft.com/
Connection creation settings
Note: If you don’t see the “Create Connection” option, you might already have an Entra ID connection for other purposes. In this case, create a new connection from “Add new connection”:
Adding new connection option
Once the connection is successfully created, set the trigger URL in the [Request URL] field and run the flow:
Setting up request URL
The flow will execute successfully:
Successful flow execution
You can confirm the successful execution on the receiving end as well:
Confirmation of successful trigger

Method 2: Using HTTP Action

When using the HTTP action, you need to first register an application in Entra ID.

Prerequisite: Entra ID Application Registration

First, access Azure Entra ID:
Azure Entra ID portal access
Click on [App registrations] and then [New registration]:
New app registration button
Register the application with your preferred name:
Application registration form
Then go to [API permissions] → [Add a permission] and add [User] permissions:
Adding API permissions
Finally, add a [New client secret] from [Certificates & secrets]:
Adding new client secret
Take note of the client secret value:
Client secret value
And record both the client ID and tenant ID:
Client ID and Tenant ID display

Calling from HTTP Action

Once the Entra ID registration is complete, configure the HTTP action with these values:
Note: The target audience is “https://service.flow.microsoft.com/”
HTTP action configuration
The call will execute successfully:
Successful execution confirmation

コメント

Copied title and URL