How to store a particular element value in a context variable based on condition using Gatewayscript

Daisy2
New Member

I have to put  a particular attribute value that is (Pnumber =1234)  in a context variable only if the log level is error or failure. Don't know how to write gateway script to put Pnumber attribute and value in a context variable using gateway script. Can someone help on this.

XML Request:

<Order Doc="01" No="02">
<Ext Eno="82">
<List>
<Rel Code="B" ItemID="23" Pnumber="1234" Item="AB"/>
<List>
</Ext>
</Order>

1 REPLY 1

hi! 

Welcome to the Apigee forum on GoogleCloudCommunity.com. 

This forum is focused on Apigee.  Not on Datapower. I doubt you will find answers regarding GatewayScript here.

You might want to post elsewhere.

Good luck!