Groovy Script
Example
Original Request
New Request
Explanation
This script performs the following operations:- JSON Parse: JSON message coming from request body is parsed
- Field Addition: A new field (
tamAd) is added using existing fields - JSON Creation: Updated JSON message is created
This script should be run on the request line (Request Policy) because it uses the
requestBodyTextFromClient and requestBodyTextToTargetAPI variables.
