cancel
Showing results for 
Search instead for 
Did you mean: 
Reply
drake
Helper II
Helper II

Invoke Web Service Action Issue: Multiple Headers

Hello,

We can successfully use the Invoke Web Service action when an API requires only one item in the Custom headers field (like "Authorization"), but when two items are required, the connection attempt fails due to an "invalid credentials" error.  Using the same header items, the connection is successful in the Postman app so we feel they are correct.   

 

We feel that Power Automate Desktop may be incorrectly formatting the header values when it sends the request or we are incorrectly formatting them in the Custom headers field.  To add to this concern, one of the headers requires a space in its value ("Authorization: Bearer [KEY]"):

 

drake_1-1623276047918.png

 

The credentials have to be base 64 encoded, so using the HTTP Authentication section does not appear to be an option:

 

drake_0-1623275945137.png

 

We have no way to viewing the request that is actually being sent out by Power Automate Desktop (I don't believe this is possible to see from within the app), but again the request works fine from Postman.  We have attempted using commas, semicolons, newlines, etc. to delimit the two header lines.  We have also attempted to include the header string in a variable and then reference the variable from the Custom headers field.  Unfortunately, nothing has worked so far.

 

Is anyone aware of how to view a request, how to format the text in the Custom headers field when there are more than one header and a space in value, or any other idea for how to resolve this issue?  Thanks!

0 REPLIES 0

Helpful resources

Announcements
Process Advisor

Introducing Process Advisor

Check out the new Process Advisor community forum board!

MPA User Group

Welcome to the User Group Public Preview

Check out new user group experience and if you are a leader please create your group

V3_PVA CAmpaign Carousel.png

Community Challenge - Giveaways!

Participate in the Power Virtual Agents Community Challenge

Carousel 2021 Release Wave 2 Plan 768x460.jpg

2021 Release Wave 2 Plan

Power Platform release plan for the 2021 release wave 2 describes all new features releasing from October 2021 through March 2022.

Carousel April Dunnam Updated 768x460.jpg

Urdu Hindi D365 Bootcamp

Dont miss our very own April Dunnam’s The Developer Guide to the Galaxy! Find out what the Power Platform has to offer for the traditional developer.

Users online (3,438)