I am setting up a new header from the "Assign Message" policy using a variable.
I want to have some conditional flow (to do Null check) before setting up the header.
For Eg:
If (accesstoken.user-foo != null) {
<Set>
<Headers>
<Header name="FEContext">{accesstoken.user-FEContext}</Header>
</Headers>
</Set>
}
How can I do this ?
Solved! Go to Solution.
You can't set headers or variables under a specific condition within AssignMessage policy. But you can achieve this in one of the following ways:
Regards,
Amar