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

Notifications

Announcements

Community site session details

Community site session details

Session Id :
Power Platform Community / Forums / Power Automate / Please do the body par...
Power Automate
Unanswered

Please do the body parameter of the HTTP request accept JSON format?

(0) ShareShare
ReportReport
Posted on by

What is the right format. When I write the parameter "grant_type": "client_credentials"
it gives me an error {"error":"unsupported_grant_type","error_description":"This grant_type is not supported. Please use client_credentials."}

ofcourse_0-1712345940879.png

 

 

 

Categories:
I have the same question (0)
  • SudeepGhatakNZ Profile Picture
    14,394 Most Valuable Professional on at

     @ofcourse

    Refer 

    Authorization code flow - Azure Active Directory B2C | Microsoft Learn

    POST https://{tenant}.b2clogin.com/{tenant}.onmicrosoft.com/{policy}/oauth2/v2.0/token HTTP/1.1 

    Content-Type: application/x-www-form-urlencoded

    grant_type=authorization_code
    &client_id=90c0fe63-bcf2-44d5-8fb7-b8bbc0b29dc6
    &scope=90c0fe63-bcf2-44d5-8fb7-b8bbc0b29dc6 offline_access
    &code=AwABAAAAvPM1KaPlrEqdFSBzjqfTGBCmLdgfSTLEMPGYuNHSUYBrq...
    &redirect_uri=urn:ietf:wg:oauth:2.0:oob
    &code_verifier=ThisIsntRandomButItNeedsToBe43CharactersLong

     

     

  • ofcourse Profile Picture
    on at

    No I still have the same problem

    {
    "error": "unsupported_grant_type",
    "error_description": "Ce grant_type n'est pas supporté. Veuillez utiliser client_credentials."
    }
    I am trying to configure the "HTTP" action to create a power automaton flow which allows it to be triggered manually and allows connection via the http protocol to the rest API with the following parameters: method = post, at the header level , the "Content-Type" parameter ="application/x-www-form-urlencoded". at body level, grant_type = client_credentials. basic authentication with a user and password
     
     I don't know if I configured a parameter incorrectly
     
    ofcourse_1-1712614480754.png

     

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

Forum hierarchy changes are complete!

In our never-ending quest to improve we are simplifying the forum hierarchy…

Kudos to our 2025 Community Spotlight Honorees

Congratulations to our 2025 community superstars!

Leaderboard > Power Automate

#1
trice602 Profile Picture

trice602 375 Super User 2025 Season 2

#2
David_MA Profile Picture

David_MA 269 Super User 2025 Season 2

#3
Expiscornovus Profile Picture

Expiscornovus 127 Most Valuable Professional

Last 30 days Overall leaderboard