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

Problem with Power Automate Web API

Hi everyone,

 

I'm having issues connecting to the Power Automate web API. This is what I did:

 

First I successfully fetch my bearer token:

2022-01-24 17_26_06-Power Apps _ Solutions -.png

Afterwards I try to execute my GET request to the Power Automate API:

2022-01-24 17_27_24-Power Apps _ Solutions -.png

 

 

I always receive a 401.

 

I did following things:

- registered subscription in Azure AD

- I granted the application user admin rights on dynamics 365

 

Still I keep on receiving the 401. 

2022-01-24 17_36_57-Power Apps _ Solutions - Fluvius.png

 

Please advice on how to overcome this issue.

 

Thanks!

1 ACCEPTED SOLUTION

Accepted Solutions
Expiscornovus
Dual Super User
Dual Super User

Hi @ArneVlietinck,

 

If you already have registered an app in Azure AD and the application user is registered you could just use one HTTP action with Active Directory OAuth in the advanced settings.

 

Below is an example:

In my example I used a couple of environment variables or the tenant, audience, client id & client secret and a string variable for my dynamics org url. Replace that by your values from your App registration.

 

dataverse_api.png

View solution in original post

2 REPLIES 2
Expiscornovus
Dual Super User
Dual Super User

Hi @ArneVlietinck,

 

If you already have registered an app in Azure AD and the application user is registered you could just use one HTTP action with Active Directory OAuth in the advanced settings.

 

Below is an example:

In my example I used a couple of environment variables or the tenant, audience, client id & client secret and a string variable for my dynamics org url. Replace that by your values from your App registration.

 

dataverse_api.png

ArneVlietinck
Frequent Visitor

Thanks @Expiscornovus , this solution worked for me!

Helpful resources

Announcements
Power Platform Conf 2022 768x460.jpg

Join us for Microsoft Power Platform Conference

The first Microsoft-sponsored Power Platform Conference is coming in September. 100+ speakers, 150+ sessions, and what's new and next for Power Platform.

MPA Virtual Workshop Carousel 768x460.png

Register for a Free Workshop

Learn to digitize and optimize business processes and connect all your applications to share data in real time.

Power Automate Designer Feedback_carousel.jpg

Help make Flow Design easier

Are you new to designing flows? What is your biggest struggle with Power Automate Designer? Help us make it more user friendly!

Top Solution Authors
Users online (1,951)