'Azure API Management - Named Values
Is there a way to have the Named Values record a combination of Text and Expression. Sample format what am trying to achieve is given below, unfortunately I tried all the ways but the expression isn't getting evaluated. Any help is greatly appreciated
Evaluated to
Solution 1:[1]
You are using single line of expression, which is not evaluating correctly in this case. Instead, use a multi line expression which will work as expected.
Code snippet for what you are trying: @{ string str1= "This is date : " ; string str2 = (DateTime.Now.ToString()); return str1+str2 ; }
The named value propery will look as below;
Output scrrenshot: 
Sources
This article follows the attribution requirements of Stack Overflow and is licensed under CC BY-SA 3.0.
Source: Stack Overflow
| Solution | Source |
|---|---|
| Solution 1 | Pankaj More |
