Skip to main content

Notifications

Community site session details

Community site session details

Session Id : Ou+J873PlUC+19+lbdQZCT
Power Automate - Building Flows
Suggested answer

When a HTTP request is received - Getting 401 Unauthorized Error

Like (0) ShareShare
ReportReport
Posted on 26 Nov 2024 15:19:59 by 42
Hi,
 
I have two Flows,
 
One Flow Send an Adaptive Card to Outlook.
Another Flow is When an Http request is received. (Once Button is Clicked from Adaptive Card in the Mail, response should send to this Flow)
 
In the Flow, I am sending the adaptive card to Outlook Mail and from the mail if i click on the Button in Adaptive Card, response is not sending to the Flow.
Displaying 401 HTTP Error.

Can help me to resolve this issue.
 
 
 
I have Tried the URL with Postman and i received 401 Unauthorized Error.

 
 Thanks.
Postman.png

Your file is currently under scan for potential threats. Please wait while we review it for any viruses or malicious content.

  • CU28041619-0 Profile Picture
    2 on 28 Apr 2025 at 16:22:23
    When a HTTP request is received - Getting 401 Unauthorized Error
    Hello @Hema, have you found a solution to trigger the flow from the adaptive card without using the "Anyone" option?
     
    Hello @rzaneti
    I have a use case where I send an email with an Adaptive Card and use a Power Automate flow with a “When an HTTP request is received” trigger to listen for responses.

    It works as expected when the HTTP trigger is set to “Anyone”, but when I change the setting to “Any user in my tenant”, the action in the Adaptive Card returns a 401 Unauthorized error.

    Unfortunately, our company policy does not allow the “Anyone” option.

    Do you know if it’s possible to use the HTTP trigger with this more restrictive setting as a callback from an Adaptive Card in Outlook?

    Thank you
  • Suggested answer
    rzaneti Profile Picture
    4,024 Super User 2025 Season 1 on 26 Nov 2024 at 22:08:52
    When a HTTP request is received - Getting 401 Unauthorized Error
    Hi,
     
    You are getting this error because your HTTP request requires an authentication token. You can easily remove this requirement by changing the Who can trigger the flow? property to Anyone. This approach, however, will allow anyone with this URL to make requests that will trigger the flow, which is a potential cybersecurity risk depending on your use case.
     
    If you need to keep the HTTP requests limited to Any user in my tenant, you can follow the steps from this video to generate the authentication token.
     
    Let me know if it works for you or if you need any additional help!
    -------------------------------------------------------------------------
    If this is the answer for your question, please mark the post as Solved.
    If this answer helps you in any way, please give it a like.
     

Under review

Thank you for your reply! To ensure a great experience for everyone, your content is awaiting approval by our Community Managers. Please check back later.

Helpful resources

Quick Links

Understanding Microsoft Agents - Introductory Session

Confused about how agents work across the Microsoft ecosystem? Register today!

Warren Belz – Community Spotlight

We are honored to recognize Warren Belz as our May 2025 Community…

Congratulations to the April Top 10 Community Stars!

Thanks for all your good work in the Community!

Leaderboard > Power Automate - Building Flows

#1
stampcoin Profile Picture

stampcoin 97

#2
Michael E. Gernaey Profile Picture

Michael E. Gernaey 70 Super User 2025 Season 1

#3
David_MA Profile Picture

David_MA 48 Super User 2025 Season 1

Overall leaderboard
Loading started