API Connect

 View Only

 Invoke policy property substitution using context variable

Atul Mathew George's profile image
Atul Mathew George posted Fri March 06, 2026 07:08 AM

Hi ,

I would like to check if there is a provision to supply Headercontrol -> Allowlist in API Connect invoke policy using context variables set using gateway script prior to the invoke in API assembly. I tried the option of setting a context variable as shown in screenshots inline. Please let me know if there is any option to achieve dynamic substitution of this property in invoke policy.

Gateway script :

Invoke policy :