web
You’re offline. This is a read only version of the page.
close
Skip to main content

Notifications

Announcements

Community site session details

Community site session details

Session Id :
Power Platform Community / Forums / Power Apps / How to connect custom ...
Power Apps
Unanswered

How to connect custom API using OAuth2 in Microsoft Power Automate?

(0) ShareShare
ReportReport
Posted on by

I am a new member of the platform, so help would mean a lot to me. I'm trying to get a bearer token in Power Automate flow using Oauth 2.0. Since I use a custom connector it is not clear to me what should I specify under the URI field? I have attached screenshots (only the data from the second screenshots I use in Postman, and everything works normally). Thank you.

 

 

petarPan_0-1623625309861.png

 

petarPan_1-1623625326959.png

 

Categories:
I have the same question (0)
  • v-xiaochen-msft Profile Picture
    on at

    Hi @Anonymous ,

     

    URI is used to enter your API.

    v-xiaochen-msft_0-1623635349231.png

     

    Best Regards,
    Wearsky
    If my post helps, then please consider Accept it as the solution to help others. Thanks.

     

  • Community Power Platform Member Profile Picture
    on at

    Hi Wearsky. I don't know how to get the URI, for custom connectors. What should I do?

  • Community Power Platform Member Profile Picture
    on at
    I have Access Token Url`http://localhost:60001/identity/connect/token` as URL. when I try this, I get the error that URI is invalid. 
  • PaulD1 Profile Picture
    2,914 on at

    Not very familiar with OAuth and the like - but your URL is for localhost (your PC) and Flow is running in the cloud, so will not be able to connect to that address.

    If you have a custom connector you should be able to add it to your connections and then select that connection in Power Automate and pass in parameters directly rather than having to use HTTP action (a customer connector provides a more user-friendly interface to what you would otherwise use the HTTP action for).

  • Community Power Platform Member Profile Picture
    on at

    Thank you for response. I will try it. 

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

Forum hierarchy changes are complete!

In our never-ending quest to improve we are simplifying the forum hierarchy…

Ajay Kumar Gannamaneni – Community Spotlight

We are honored to recognize Ajay Kumar Gannamaneni as our Community Spotlight for December…

Leaderboard > Power Apps

#1
WarrenBelz Profile Picture

WarrenBelz 721 Most Valuable Professional

#2
Michael E. Gernaey Profile Picture

Michael E. Gernaey 320 Super User 2025 Season 2

#3
Power Platform 1919 Profile Picture

Power Platform 1919 268

Last 30 days Overall leaderboard