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 / Adding formData to HTT...
Power Automate
Unanswered

Adding formData to HTTP Request

(0) ShareShare
ReportReport
Posted on by 84

Hello!

 

I am trying to authenticate with an API. On Swagger it shows I need to use formData fields.

 

image.png

I can authenticate fine from Swagger, but I am unable to replicate this in my Flow.

 

image.png

Queries do not work and I cannot put the JSON in the body, it will return URL not found, and I believe this is because I don't have the username and password fields as formData in the URL. 

 

Is anyone able to assist with how I will get my formData fields formatted in the request body please?

 

Thanks in advance!

Categories:
  • AndyH_JSY Profile Picture
    84 on at

    to add to this, I get 404 error when trying the below JSON body, but I do get some headers returned: 

    image.png

     

     

     

    {
     "$content-type": "multipart/form-data",
     "$multipart": [
     {
     "headers": {
     "Content-Disposition": "form-data; name=\"username\""
     },
     "body": "*****"
     },
     {
     "headers": {
     "Content-Disposition": "form-data; name=\"password\""
     },
     "body": "*****"
     }
     ]
    }

     

     

    Thanks!

     

     

  • WillPage Profile Picture
    2,339 Super User 2026 Season 1 on at

    image.png

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

Leaderboard > Power Automate

#1
11manish Profile Picture

11manish 321 Super User 2026 Season 2

#2
Mohsin Ali Profile Picture

Mohsin Ali 244

#3
Henil Profile Picture

Henil 102

Last 30 days Overall leaderboard