Skip to main content

Notifications

Community site session details

Community site session details

Session Id :
Power Apps - Connector Development
Unanswered

How to send x-www-form-urlencoded body?

(0) ShareShare
ReportReport
Posted on by 12

Hi,

 

Instead of JSON, how to send the data in the body by x-www-form-urlencoded?

I mean the format is:

name=maggie

instead of 

{"name":"maggie"}

 

the import from sample only allows JSON:

截屏2021-12-28 07.07.34.png

Many thanks!

 

  • ogoggio Profile Picture
    6 on at
    Re: How to send x-www-form-urlencoded body?

    adding a header with content type worked for me, ty

  • Takescake Profile Picture
    3 on at
    Re: How to send x-www-form-urlencoded body?

    nice work thanks for this

  • paulbeck1 Profile Picture
    244 on at
    Re: How to send x-www-form-urlencoded body?

    @Syndicate_Admin  answer is perfect.   Instead of JSON use the encode format which uses key pairs in the body separated by ampersands.  I also needed to send a Url in the body to an API and this shall need escaping.  For me Postman was working but I could not get the formatting correct so I used Fiddler (you could also use Postman's proxy but I'm ancient).  Working Postman request to capture the underlying http request formattingWorking Postman request to capture the underlying http request formatting

    It's worth understanding HTML form encoding if you want the background: Understanding HTML Form Encoding: URL Encoded and Multipart Forms - DEV Community

     

    Power Automate successful Custom HTTP Connector POST requestPower Automate successful Custom HTTP Connector POST request

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

Michael Gernaey – Community Spotlight

We are honored to recognize Michael Gernaey as our June 2025 Community…

Congratulations to the May Top 10 Community Leaders!

These are the community rock stars!

Announcing the Engage with the Community forum!

This forum is your space to connect, share, and grow!

Leaderboard >

Featured topics