79503139

Date: 2025-03-12 09:35:49
Score: 0.5
Natty:
Report link

Thank you @Vitaliy Kurokhtin for the comment.

The reason you're facing the issue is due to wrong syntax, APIM requires expressions to be enclosed in @(...), not "@{...}".

Replace your existing policy with the following,


<inbound>
    <base />
    <set-query-parameter name="timestamp" 
        value="@(Uri.EscapeDataString(DateTime.UtcNow.ToString(&quot;yyyyMMddHHmmssfff&quot;) + &quot;+0000000&quot;))" />
</inbound>

Please refer MsDoc1, MsDoc2 for better understanding of APIM policy expression, Set query string parameter respectively.

Reasons:
  • Blacklisted phrase (0.5): Thank you
  • Long answer (-0.5):
  • Has code block (-0.5):
  • User mentioned (1): @Vitaliy
Posted by: Sirra Sneha