Skip to main content

Notifications

Power Automate - Using Connectors
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!

  • Rakesh90 Profile Picture
    Rakesh90 2 on at
    Re: HTTP request access token

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

  • Re: HTTP request access token

    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

     

     

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

Microsoft Kickstarter Events…

Register for Microsoft Kickstarter Events…

Announcing Our 2025 Season 1 Super Users!

A new season of Super Users has arrived, and we are so grateful for the daily…

Announcing Forum Attachment Improvements!

We're excited to announce that attachments for replies in forums and improved…

Leaderboard

#1
WarrenBelz Profile Picture

WarrenBelz 145,691

#2
RandyHayes Profile Picture

RandyHayes 76,287

#3
Pstork1 Profile Picture

Pstork1 65,019

Leaderboard

Featured topics