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 / Parameters in Power Au...
Power Automate
Unanswered

Parameters in Power Automate Desktop HTTP Post request

(0) ShareShare
ReportReport
Posted on by 20

I'm trying to pass parameters into my HTTP POST request to a web API.

Using postman, I can easily set the parameter "batchDate" to be something like "2021-03-21T22:04:55.8299681-10:00". But i can't find how to do that in Power Automate Desktop.

 

I've tried passing into the headers: {batchDate:"2021-03-21T22:04:55.8299681-10:00"} or {"batchDate":"2021-03-21T22:04:55.8299681-10:00"} but i keep getting error message: "Failed to invoke web service: Specified value has invalid HTTP Header characters. Parameter name: name."

 

Can someone help me out?

I have the same question (0)
  • fraenK Profile Picture
    2,125 on at

    If you have one header only, then following works, otherwise create a list variable:

    batchDate:2021-03-21T22:04:55.8299681-10:00
    key:value

     

  • Steventran0502 Profile Picture
    20 on at

    I tried that but didn't work. Getting error: No HTTP resource was found that matches the request URI ...

    I do notice because it's a date time string, there's colon in the middle so there're multiple colons instead of 2. even if i omit the time portion, it's still giving me the same error. 

    screenshot2.PNG

  • fraenK Profile Picture
    2,125 on at

    The error indicates that there is something wrong with the URL. Why is it plain http?

  • Steventran0502 Profile Picture
    20 on at

    Its an internally developed api. Its not the issue with the link because im able to do Python,curl or Postman just fine. Just cant do it in Power Automate. 

    Can you give an example of how you do it in a list? A list only have values so how do you specify key and value pairs?

  • fraenK Profile Picture
    2,125 on at

    Try this test site and send a request with your header, works fine for me https://hookbin.com/

     

    For a list, just create a new list and add the header key:value pair as a new item. It's basically just a cell per header row

  • Steventran0502 Profile Picture
    20 on at

    Hi Fraenk,

     

    Thanks for your help by providing me the tool for unit test. I was able to make it work. It turns out the API is looking for the parameter in the link, not the header. i'm good with this one.

     

    Next thing I have to find out is how to attach text file to the request. HOpefully I can figure that out too, then my project will be completed! 

     

    Much appreciate!

  • fraenK Profile Picture
    2,125 on at
  • shoulei Profile Picture
    2 on at

    How to fill in if the header has multiple parameters

  • TheRealNerfHerd Profile Picture
    4 on at

    @shoulei the "Create new list" variable then the "add item to list" variables as many times as needed per header to pass in the syntax @fraenK worked on the SEC's API - but now i gotta figure out why only gibberish came out ay dios mio

     

  • TheRealNerfHerd Profile Picture
    4 on at

    figured it out - PEBKAC - Problem Encountered Between Keyboard And Chair - https://www.sec.gov/edgar/sec-api-documentation for all you Finance Sleuths out there

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!

Congratulations to the April Top 10 Community Leaders!

These are the community rock stars!

Leaderboard > Power Automate

#1
Vish WR Profile Picture

Vish WR 707

#2
Haque Profile Picture

Haque 475

#3
Valantis Profile Picture

Valantis 456

Last 30 days Overall leaderboard