Hello All,
I am trying to refer the below link that talks about how to create catalog scoped custom policy in Datapower API Gateway. Now I wanted to know how to read the policy input property values in the assembly section(like gatewayscript code). I dont think it is mentioned anywhere in the knowledge center if I am not wrong.
Defining and packaging a Catalog scoped user-defined policy for the DataPower API GatewayI tried the below code, but it didn't work. Appreciate your help and support in this regard. thanks!
var apim = require('apim');
var props = apim.getPolicyProperty();
var field1= props.properyname1;
var field2= props.properyname1;
var requestJson ={};
requestJson["field1"]=field1;
requestJson["field2"]=field2;
context.message.body.write(requestJson);
------------------------------
Srinivas Poram
------------------------------