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 / Custom Connector | Set...
Power Automate
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

Categories:
I have the same question (0)
  • sammysword Profile Picture
    76 on at

    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.

  • sammysword Profile Picture
    76 on at

    @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
    76 on at

    @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)

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

Season of Sharing Community Challenge Winners!

Congratulations to our community stars!

Kudos to our 2025 Community Spotlight Honorees

Expanding mentorship, skilling, and AI innovation

Congratulations to the June Top 10 Community Leaders!

These are the community rock stars!

Leaderboard > Power Automate

#1
David_MA Profile Picture

David_MA 262 Super User 2026 Season 1

#2
11manish Profile Picture

11manish 167

#3
Haque Profile Picture

Haque 154

Last 30 days Overall leaderboard