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
Super User
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
Super User
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
October Events

Mark Your Calendars

So many events happening this month - don't miss out!

 WHAT’S NEXT AT MICROSOFT IGNITE 2022

WHAT’S NEXT AT MICROSOFT IGNITE 2022

Explore the latest innovations, learn from product experts and partners, level up your skillset, and create connections from around the world.

Register for a Free Workshop.png

Register for a Free Workshop

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

Users online (3,649)