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

Microsoft Build 768x460.png

Microsoft Build is May 24-26. Have you registered yet?

Come together to explore latest innovations in code and application development—and gain insights from experts from around the world.

May UG Leader Call Carousel 768x460.png

What difference can a User Group make for you?

At the monthly call, connect with other leaders and find out how community makes your experience even better.

PA Survey Carousel Image.png

We want to hear from you!

If you are a small business ISV/Reseller, share your thoughts with our research team.

Top Kudoed Authors
Users online (1,580)