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

Notifications

Announcements

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:
I have the same question (0)
  • 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,307 Super User 2025 Season 2 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

Forum hierarchy changes are complete!

In our never-ending quest to improve we are simplifying the forum hierarchy…

Ajay Kumar Gannamaneni – Community Spotlight

We are honored to recognize Ajay Kumar Gannamaneni as our Community Spotlight for December…

Leaderboard > Power Automate

#1
Michael E. Gernaey Profile Picture

Michael E. Gernaey 522 Super User 2025 Season 2

#2
Tomac Profile Picture

Tomac 364 Moderator

#3
abm abm Profile Picture

abm abm 243 Most Valuable Professional

Last 30 days Overall leaderboard