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

Announcements

News and Announcements icon
Community site session details

Community site session details

Session Id :
Power Platform Community / Forums / Power Automate / HTTP request access token
Power Automate
Unanswered

HTTP request access token

(0) ShareShare
ReportReport
Posted on by 27

I am trying to get the access token from the bc api i have set up in azure. Right now this is working in postman without any problems.
However, when I try to implement it in the flow, it doesn't seem to work.
Postman way:

postman get access code.JPG

 

In the flow I have tried a bunch of different ways:
1. with Active Directory Oauth:: If i switch the uri to token then it does give me an access token but when I put it in then it says invalid 
Also tried switching grant_type to authorization_code... but that requires a code in the body
active directory oauth.JPG

 

also tried just without oauth, but similarly requires code if grant_type is authorization and is invalid if grant_type is client_credentials
vanilla.JPG

 

also tried using redirect_url which seem to give me html for like a sign in page. This might be a good way but I don't seem to know how to get that sign up page to pop up and I don't want to sign in twice. This is redirecting to the bot link on azure(I have also tried the postman call back url)something.JPG

 

In the postman way I had to log in to generate the token, so I assume I need to first Authorize then get token. How would I best accomplish this to get the right access token?

Thanks!

Categories:
I have the same question (0)
  • Rohit Sharma354 Profile Picture
    Microsoft Employee on at

    Hello,

     

    I don't have the exact answer, but please try calling BC APIs by creating this as a custom connector from the postman collection (since it works in postman) and see if the authentication works.

     

    https://docs.microsoft.com/en-us/connectors/custom-connectors/define-postman-collection

     

    https://www.flowug.com/communities/community-home/digestviewer/viewthread?GroupId=2273&MessageKey=c8790e9f-f4af-4804-a79b-707cb5f7384e&CommunityKey=1fed0d45-1f4a-4b0c-b1f8-4dd5397a847f&tab=digestviewer

     

     

  • Rakesh90 Profile Picture
    2 on at

    Hi mate, Iam facing the same issue. Did you find a resolution? If so could you please share?

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

Introducing the 2026 Season 1 community Super Users

Congratulations to our 2026 Super Users!

Kudos to our 2025 Community Spotlight Honorees

Congratulations to our 2025 community superstars!

Congratulations to the March Top 10 Community Leaders!

These are the community rock stars!

Leaderboard > Power Automate

#1
Vish WR Profile Picture

Vish WR 873

#2
Valantis Profile Picture

Valantis 813

#3
Haque Profile Picture

Haque 526

Last 30 days Overall leaderboard