cancel
Showing results for 
Search instead for 
Did you mean: 
Reply
Highlighted
Frequent Visitor

HTTP request access token

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!

2 REPLIES 2
Highlighted
Microsoft
Microsoft

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=c8...

 

 

Highlighted
New Member

Re: HTTP request access token

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

Helpful resources

Announcements
firstImage

Super User Program Update

Three Super User rank tiers have been launched!

firstImage

Power Platform 2020 release wave 2 plan

Features releasing from October 2020 through March 2021

firstImage

Join the new Power Virtual Agents Community!

We are excited to announce the launch of Power Virtual Agents Community. Check it out now!

firstImage

New & Improved Power Automate Community Cookbook

We've updated and improved the layout and uploading format of the Power Automate Cookbook!

thirdimage

Power Automate Community User Group Member Badge

Fill out a quick form to claim your user group badge now!

Top Solution Authors
Users online (8,069)