Hi,
I'm trying use HTTP request POST method to send HTML code to an API. The API requires the "x-www-form-urlencoded" body type. I'm able to adjust the headers and format the request body properly, except Flow refuses to url encode my html.
I get the following error message:
This is what my HTTP request looks like.
The 'Get_attachment_content_2' returns HTML.
Anyone know what I'm doing wrong? Is this just a bug?
When I paste my HTML into a webform url-encoder, there aren't any errors.
Solved! Go to Solution.
Yes, I tried that but the content was not being Url encoded automatically. The HTTP action seems only designed to handle application/json content type requests.
My solution was to make my own url-encoding function:
Hi @Anonymous,
Have you take a try to don't use the expression encodeUriComponent and just use the expression
body('Get_attachment_content_2') ?
Best regards,
Alice
Yes, I tried that but the content was not being Url encoded automatically. The HTTP action seems only designed to handle application/json content type requests.
My solution was to make my own url-encoding function:
The first Microsoft-sponsored Power Platform Conference is coming in September. 100+ speakers, 150+ sessions, and what's new and next for Power Platform.
Announcing a new way to share your feedback with the Power Automate Team.
Learn to digitize and optimize business processes and connect all your applications to share data in real time.
User | Count |
---|---|
67 | |
22 | |
16 | |
16 | |
11 |
User | Count |
---|---|
133 | |
43 | |
32 | |
32 | |
28 |