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 / 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
    74 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
    74 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
    74 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

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