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

Announcements

News and Announcements icon
Community site session details

Community site session details

Session Id :
Power Platform Community / Forums / Power Automate / Building a power autom...
Power Automate
Unanswered

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

(0) ShareShare
ReportReport
Posted on 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

 

 

Categories:
I have the same question (0)
  • Manish Solanki Profile Picture
    15,167 Moderator on at

    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.

     

  • ArturDjali10 Profile Picture
    17 on at

    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.

     

     

     

     

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

Introducing the 2026 Season 1 community Super Users

Congratulations to our 2026 Super Users!

Kudos to our 2025 Community Spotlight Honorees

Congratulations to our 2025 community superstars!

Leaderboard > Power Automate

#1
Haque Profile Picture

Haque 589

#2
Valantis Profile Picture

Valantis 328

#3
David_MA Profile Picture

David_MA 284 Super User 2026 Season 1

Last 30 days Overall leaderboard