AnsweredAssumed Answered

property set in match script not working in response data in VSI

Question asked by RajaGanapathy on Feb 9, 2018
Latest reply on Nov 2, 2018 by LISASupport

I have a match script in my VSI like below

 

String incomingAcctNumValue = incomingRequest.getArguments().get("keyValue_value");

switch(incomingAcctNumValue)
{
case "4800150020014723":
testExec.setStateValue("acctNum",incomingAcctNumValue);
testExec.setStateValue("accountId", "00000000058");
testExec.setStateValue("customerId", "000003544");
break;
case "4800150011009815":
testExec.setStateValue("acctNum",incomingAcctNumValue);
testExec.setStateValue("accountId","00000000058");
testExec.setStateValue("customerId", "000003547");
break;
case "4800150011009807":
testExec.setStateValue("acctNum",incomingAcctNumValue);
testExec.setStateValue("accountId","00000000059");
testExec.setStateValue("customerId","000003544");
break;
default:
testExec.setStateValue("acctNum",incomingAcctNumValue);
testExec.setStateValue("accountId","00000000058");
testExec.setStateValue("customerId","000003546");

}

 

 

and i'm calling these property in my response data like

{{acctNum}}

 

 

 

but i'm still getting the response as {{acctNum}} instead of the values; 

 

Please let me know what i'm doing wrong?

Outcomes