web
You’re offline. This is a read only version of the page.
close
Skip to main content

Announcements

News and Announcements icon
Community site session details

Community site session details

Session Id :
Power Platform Community / Forums / Power Automate / Power Automate Desktop...
Power Automate
Answered

Power Automate Desktop - Send a x-www-form-urlencoded Body - OAuth 2 client_credentials authentication

(0) ShareShare
ReportReport
Posted on by 12

Hello everyone,

 

I'm trying to authorize using OAuth 2 client credentials authentication. It works perfectly fine using postman, but when I try to send the request using Power Automate Desktop. (so credentials are fine)

I always get an error saying that required params in the body are missing.

For my understanding the request is not correctly formatted for the message format x-www-form-urlencoded.

 

My request

Marcel3_0-1638703693788.png

 

The response I get:

Bildschirmfoto 2021-12-05 um 11.29.00.png

Can anyone help me out? How do I format the body of my request correctly?

 

Thank you!

 

  • Marcel3 Profile Picture
    12 on at

    Setting the body to grant_type=client_credentials doesn't work either

  • MichaelAnnis Profile Picture
    5,727 Moderator on at

    Try using command line.

     

    Here’s a post:  https://developer.okta.com/blog/2018/07/16/oauth-2-command-line

     

  • Verified answer
    yoko2020 Profile Picture
    495 on at

    Here is an example of request body for azure key vault called from power automate desktop invoke web service.

     

     

    grant_type=client_credentials&client_id=%keyVaultClientId%&client_secret=%keyVaultClientSecret%&scope=https://vault.azure.net/.default

     

  • Marcel3 Profile Picture
    12 on at

    Thank you, both solutions should work although I prefer @yoko2020 solution as it is integrated in Power Automate Desktop. In my case I found out that the receiving API is broken ....

     

     

Under review

Thank you for your reply! To ensure a great experience for everyone, your content is awaiting approval by our Community Managers. Please check back later.

Helpful resources

Quick Links

Season of Sharing Community Challenge Winners!

Congratulations to our community stars!

Kudos to our 2025 Community Spotlight Honorees

Expanding mentorship, skilling, and AI innovation

Leaderboard > Power Automate

#1
Mohsin Ali Profile Picture

Mohsin Ali 355

#2
11manish Profile Picture

11manish 336 Super User 2026 Season 2

#3
M Bilal Khan Profile Picture

M Bilal Khan 308

Last 30 days Overall leaderboard