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

Community site session details

Session Id : h6BpcqRz5zkO7Ev3ivkSft
Power Automate - Building Flows
Unanswered

Building a power automate flow to send a multipart form through a HTTP request

Like (0) ShareShare
ReportReport
Posted on 25 Mar 2024 10:42:42 by 17

Hi All,

 

I am having a bit of trouble with sending a multipart form through a http request. I have been able to get it to succussed but the problem i have now is that i need to format of the uploaded file to to look something like this with an array called source: 

{"source":[

{"k": "File name",

"v": "Some Value"},

{"k": "document size",

"v": "Some Other value"}]}

 

currently this is my request and i'm not sure how to change:

ArturDjali10_0-1711363168723.png

 

 

{
 "$content-type": "multipart/form-data",
 "$multipart": [
 {
 "headers": {
 "Content-Disposition": "form-data; name=\"country\""
 },
 "body": "UK"
 },
 {
 "headers": {
 "Content-Disposition": "form-data; name=\"department\""
 },
 "body": "finance"
 },
 {
 "headers": {
 "Content-Disposition": "form-data; name=\"source_url\""
 },
 "body": "@{items('Apply_to_each')?['LinkToItem']}"
 },
 {
 "headers": {
 "Content-Disposition": "form-data; name=\"confidentiality\""
 },
 "body": "Private"
 },
 {
 "headers": {
 "Content-Disposition": "form-data; name=\"uploaded_file\"; filename=\"@{items('Apply_to_each')?['{FilenameWithExtension}']}\""
 },
 "body": @{outputs('FileContent')}
 }
 ]
}

 

 

Any help is appreciated. Thank you in advance

 

 

  • ArturDjali10 Profile Picture
    17 on 25 Mar 2024 at 11:26:21
    Re: Building a power automate flow to send a multipart form through a HTTP request

    Hi @ManishSolanki,

     

    Thank you for taking the time to respond. I did come across you post when building out the original request which was most useful! However, with the change of requirement as mentioned above i am unsure how to best restructure the main body to allow for the array for the file uploaded.

     

     

     

     

  • ManishSolanki Profile Picture
    15,085 Super User 2025 Season 2 on 25 Mar 2024 at 10:53:30
    Re: Building a power automate flow to send a multipart form through a HTTP request

    Hi @ArturDjali10 

     

    Pls check out my blog where I have explained the steps to send multipart form request:

    Post multipart form/data using http connector in power automate (manish-solanki.com)

     

     

    If this helps & solves your problem, please remember to give a 👍 and accept my solution as it will help others in the future.

     

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

Telen Wang – Community Spotlight

We are honored to recognize Telen Wang as our August 2025 Community…

Announcing our 2025 Season 2 Super Users!

A new season of Super Users has arrived, and we are so grateful for…

Congratulations to the July Top 10 Community Leaders!

These are the community rock stars!

Leaderboard > Power Automate

#1
Tomac Profile Picture

Tomac 986 Moderator

#2
stampcoin Profile Picture

stampcoin 699 Super User 2025 Season 2

#3
Riyaz_riz11 Profile Picture

Riyaz_riz11 577 Super User 2025 Season 2

Loading complete