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 / Power Automate Desktop...
Power Automate
Unanswered

Power Automate Desktop - Web service invoke

(1) ShareShare
ReportReport
Posted on by 59

Trying to invoke a REST web api that requires couple of custom header values. Couldn't find any documentation on how to provide custom headers - key value pair in the action details. Can someone help me with this?

I have the same question (0)
  • CFernandes Profile Picture
    8,402 Most Valuable Professional on at

    Hey Mate,

     

    @itssujeeth 

     

    You just have the pass the Key:value

     

    CFernandes_0-1602868484501.png

    If this reply has answered your question or solved your issue, please mark this question as answered. Answered questions helps users in the future who may have the same issue or question quickly find a resolution via search. If you liked my response, please consider giving it a thumbs up. THANKS!

     

     

     

  • itssujeeth Profile Picture
    59 on at

    @CFernandes - It works perfectly fine for one header. When we require multiple headers - space separation fails, comma separation fails, semicolumn separation fails.

  • Verified answer
    PetrosF-MSFT Profile Picture
    on at

    Hi @itssujeeth 

     

    You could try adding the headers into a list variable, and then pass that variable in the Custom Headers parameter.

    The actions "Create new list" & "Add item to list" could be used.

     

    Let me know if that helps!

     

     

  • itssujeeth Profile Picture
    59 on at

    @PetrosF-MSFT - It didn't work. Images attached

     

    Webservice.pngErrorMessage.png

  • itssujeeth Profile Picture
    59 on at

    @PetrosF-MSFT  - I was able to fix the above mentioned "parameter name: name" issue by removing the space between <key_name> and ":".

     

    This issue is resolved, and using List is the correct solution. Thank you.

  • Sigridk1 Profile Picture
    4 on at

    I had the same issue and figured out you did use a list.  I did the same and had to find the right combo of advanced settings to get it to work.  It shouldn't be this hard...  Oh well - thanks for the post - it helped me.  Wish they would include something like this in the doc!

    S-

     

     

     

  • LogicSmith Profile Picture
    225 on at

    I had this same issue, fix turned out to be something different. I did not need a list.

    Regular text, line feed between entries. What helped was no spaces around the colon.

    What also helped was using colon instead of equals, which was what the developers told me to use.

     

  • Muzaffar1 Profile Picture
    2 on at

    Hello, I have to post json file into s3 bucket what are the custom headers and body parameters could you help me?

     

  • Sigridk1 Profile Picture
    4 on at

    HI @Muzaffar1 

    The header parameters will depend on your REST API call requirements. 

    In my case, I needed a client id and secret.  If more than one header parameter, which was my case, create a list, add the header parameters to the list and then have the REST API call point to it.

    Sigridk1_0-1688566955819.png

     

    The body is easy - just copy and paste the body - swap out values with variables, as needed.

    Sigridk1_4-1688567129944.png

     

    In my case, I also had to tweak advanced parameters - but yours may be different.  Mine are

    Sigridk1_3-1688567066198.png

    As you can see in this post, some users have other ideas on how it might work, but this works for me.

     

    HTH,

    Sigrid

  • gauravsolanke Profile Picture
    52 on at

    still I am facing issue like you could you please tell me whats wrong here ?

    gauravsolanke_0-1712234501739.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 538 Super User 2025 Season 2

#2
Tomac Profile Picture

Tomac 405 Moderator

#3
abm abm Profile Picture

abm abm 252 Most Valuable Professional

Last 30 days Overall leaderboard