Hi All,
I want to route the request to different target environment based on the data in the JSON request
from the data UserRequest-->CustomerDetails-->Address (array) -->AddressType
Could any one tell me how to condition on the request payload?
Thanks,
Murugan
Solved! Go to Solution.
To accomplish this task, use an extract variable policy and set a variable with the JSONPayload tag. From there you can create a route rule with a condition comparing the extracted variable like this:
<RouteRule name="MyRoute"> <Condition>myExtractedVariable equals "value I'm looking for" </Condition> <TargetEndpoint>TargetEndpoint1</TargetEndpoint> </RouteRule>
If I answered your question, please click accept.