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,169 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

Season of Sharing Community Challenge Winners!

Congratulations to our community stars!

Kudos to our 2025 Community Spotlight Honorees

Expanding mentorship, skilling, and AI innovation

Congratulations to the July Top 10 Community Leaders!

These are the community rock stars!

Leaderboard > Power Automate

#1
David_MA Profile Picture

David_MA 283 Super User 2026 Season 2

#2
trice602 Profile Picture

trice602 164 Super User 2026 Season 2

#3
11manish Profile Picture

11manish 141 Super User 2026 Season 2

Last 30 days Overall leaderboard