Skip to main content

Notifications

Community site session details

Community site session details

Session Id : 8E/FiL+FijeB6Uwj3wvkem
Power Automate - Building Flows
Unanswered

Boundary of HTTP multi-part request

Like (1) ShareShare
ReportReport
Posted on 11 Mar 2022 06:07:34 by 2

Hi,

I am trying to use HTTP action in Power Automate to post a file to a third party API. The request can be successfully proceeded if it is sent via Postman. And the captured request looks like this.

Postman.png

 

In Power Automate, I used below JSON to build the same.

Khaos_C_0-1646978519497.png

 

However, the request cannot be proceeded by the target API as it returns 400 bad request. Checked with the vendor and they do not have much clue on what is the issue. Therefore, I have used the same webhook to capture the HTTP request sent via Power Automate, which looks like below.

PowerAutomate.png

 

I actually do not see too much differences of the two requests (Postman / Power Automate) except the "boundary" generated in Power Automate is quoted. And I am wondering if this is the cause of API processing failure.

 

So my questions:

1) Does anyone know if this boundary thing will cause issues?

2) How can we specify the boundary value in Power Automate manually, instead of letting the HTTP action generate it?

 

Thanks in advance!

  • Suggested answer
    AS-05121047-0 Profile Picture
    2 on 05 Dec 2024 at 10:48:24
  • Simona Bushevska Profile Picture
    58 on 20 Feb 2023 at 11:00:26
    Re: Boundary of HTTP multi-part request

    Hello Khaos C, I am facing the same issue. Have you found a solution for this?

  • joel-cooptimize Profile Picture
    7 on 25 Sep 2022 at 19:00:35
    Re: Boundary of HTTP multi-part request

    Thanks for posting this! You answered part of my own question in your screenshot.

     

    Sometimes file encoding can cause problems with these APIs. I see yours says "Output" which I assume is Text and not a File? I was researching the Power BI API and dealing with the File was painful. I wrote a working example here:

    https://joelleichty.com/2022/09/25/use-power-automate-http-connector-to-publish-pbix-file-using-the-power-bi-api/

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

Understanding Microsoft Agents - Introductory Session

Confused about how agents work across the Microsoft ecosystem? Register today!

Warren Belz – Community Spotlight

We are honored to recognize Warren Belz as our May 2025 Community…

Congratulations to the April Top 10 Community Stars!

Thanks for all your good work in the Community!

Leaderboard > Power Automate - Building Flows

#1
stampcoin Profile Picture

stampcoin 14

#2
Churchy Profile Picture

Churchy 12

#3
rzaneti Profile Picture

rzaneti 10 Super User 2025 Season 1

Overall leaderboard
Loading started