Is it possible to extract value from assign message policy output?

Hi,

Is there anyway through which i can extract and use the value from assign message policy output?

Like if i want to extract uuid and use it in another policy then how can i do that?

And also is there anyway through which i can only get uuid while fetching the value?

{
  "args": {
    
  }, 
  "headers": {
    "Accept": "text/html,application/xhtml+xml,application/xml;q=0.9,image/avif,image/webp,image/apng,*/*;q=0.8,application/signed-exchange;v=b3;q=0.9", 
    "Accept-Encoding": "gzip, deflate, br", 
    "Accept-Language": "en-US,en;q=0.9", 
    "Host": "httpbin.org", 
    "Sec-Fetch-Dest": "document", 
    "Sec-Fetch-Mode": "navigate", 
    "Sec-Fetch-Site": "none", 
    "Sec-Fetch-User": "?1", 
    "Upgrade-Insecure-Requests": "1", 
    "User-Agent": "Mozilla/5.0 (Windows NT 10.0; Win64; x64) AppleWebKit/537.36 (KHTML, like Gecko) Chrome/88.0.4324.104 Safari/537.36", 
    "Uuid": "000e000-e00b-00d0-a000-000000000000", 
    "X-Amzn-Trace-Id": "Root=1-601ab29a-0d947d417f160c7721a6e4cc"
  }
0 3 132
3 REPLIES 3

Not applicable

You need to use extract variable policy and using the JSON extraction you can get the UUID from the above response.

<ExtractVariables name="EV-1">

<IgnoreUnresolvedVariables>true</IgnoreUnresolvedVariables> <JSONPayload>

<Variable name="uuid">

<JSONPath>$x-apigee-uuid</JSONPath> </Variable> </JSONPayload> </ExtractVariables>

I am using extract variable policy only but not able to extract uuid.

use $.headers.Uuid