Skip to main content

Notifications

Power Automate - Connector Development
Unanswered

Error using policy to manipulate request headers

(0) ShareShare
ReportReport
Posted on by 9

Hi

 

I have a custom connector that needs to use a freshly generated token to make API calls.  Fetching the current token is no issue, but when I try to set an Authorize header on a secondary connector to this new token via a policy, I get the following error:

 

Invalid parameters template. No property names specified in @headers or @queryParameters or @connectionParameters expression

 

Not sure what I'm doing wrong.  Here's my request definition:

Radar4_0-1674244808060.png

And my policy:

Radar4_2-1674244892772.png

It's a little hard to make out in above screen shot but the Header value uses this formula:

@headers(‘vendorToken’)

 

My request body:

Radar4_3-1674244965973.png

And response body:

Radar4_4-1674244994286.png

 

What am I doing wrong?

 

Tks

Categories:

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

Microsoft Kickstarter Events…

Register for Microsoft Kickstarter Events…

Announcing Our 2025 Season 1 Super Users!

A new season of Super Users has arrived, and we are so grateful for the daily…

Announcing Forum Attachment Improvements!

We're excited to announce that attachments for replies in forums and improved…

Leaderboard

#1
WarrenBelz Profile Picture

WarrenBelz 145,434

#2
RandyHayes Profile Picture

RandyHayes 76,287

#3
Pstork1 Profile Picture

Pstork1 64,722

Leaderboard

Featured topics