Skip to main content
Community site session details

Community site session details

Session Id :
Power Automate - Connector Development
Unanswered

Custom Connector | Set Http Header template policy is not being applied upon Request

(0) ShareShare
ReportReport
Posted on by

I am making a custom connector basically what I want is to automatically add Header and Header value to the request thats being sent to the API so for this purpose I set up a 'Set Http header' template Policy. Now the issue is the header that I put in policy is not being applied upon request at all. When I go to the 'Test' section and see request header my header is not applied but here's the interesting part for me  if I go to my policy and change from "Request" to "Response" the header is shown when I go to 'Test' and see response header 

I need urgent help on it I have limited free time and I really wanted to use this time on development and not on such issues thanks

  • sammysword Profile Picture
    74 on at
    Re: Custom Connector | Set Http Header template policy is not being applied upon Request

    @devfarhanlatif 

     

    I finally got this working using the Code tab. Try looking at my post here and see if it helps:

     

    Set HTTP Header Policy - Use Substring of Authoriz... - Power Platform Community (microsoft.com)

  • sammysword Profile Picture
    74 on at
    Re: Custom Connector | Set Http Header template policy is not being applied upon Request

    @Syndicate_Admin 

     

    I never tried this but it sounds useful. I'm not seeing the Trace button though. This is my Test tab below. Am I looking in the right place?

     

    sammysword_0-1706859196943.png

     

  • sammysword Profile Picture
    74 on at
    Re: Custom Connector | Set Http Header template policy is not being applied upon Request

    I am facing a similar issue. I am trying to write my authorization token into a custom header named X-Auth-Token but when I run the policy nothing shows. I know it is doing something though. I proved this by adding in the X-Auth-Token and then manually putting the token in from Postman, which gives a success. If I change my policy to override so it uses the @headers('authorization') and puts it into the X-Auth-Token, the request fails even when I put the manual token in from Postman. When I put the policy to skip, it then passes again. So I know the value is being overwritten by the policy, I just can't figure out with what or where to see this.

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

Paul Stork – Community Spotlight

We are honored to recognize Paul Stork as our July 2025 Community…

Congratulations to the June Top 10 Community Leaders!

These are the community rock stars!

Announcing the Engage with the Community forum!

This forum is your space to connect, share, and grow!

Leaderboard > Power Automate

#1
Michael E. Gernaey Profile Picture

Michael E. Gernaey 497 Super User 2025 Season 1

#2
David_MA Profile Picture

David_MA 436 Super User 2025 Season 1

#3
Riyaz_riz11 Profile Picture

Riyaz_riz11 244 Super User 2025 Season 1

Featured topics