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.

New Process Advisor Capabilities carousel.png

Read the blog for the latest news

Read the latest about new experiences and capabilities in the Power Automate product blog.

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.

AI Builder AMA June 7th carousel (up on May 25th, take down June 8th) (1).png

'Ask Microsoft Anything' about AI Builder!

The AI Builder team invite you to ask questions and provide helpful answers at our next AMA.

Top Kudoed Authors
Users online (1,540)