AnsweredAssumed Answered

update multiple call variables in a single dialog update request.

Question asked by AzizShaik on Oct 19, 2015
Latest reply on Oct 20, 2015 by ewindgat

Hi,

 

Is there a way to update multiple call variables in a single dialog update request.

I saw an earlier post that allowed us to update a single call variable, but we have a need to update multiple call variables before we transfer a call.

 

this is the sample code that i am using

var cvpTransfer = {

                "name": "dialedNumber",

                "value": "CVP_TRANSFER"

            };

            var dialedNumber = {

                "name": "callVariable9",

                "value": _toAddress

            };

            var value = _callDataUpdateModValue < 9 ? _callDataUpdateModValue = _callDataUpdateModValue + 1 : 0;

 

 

            var userMod = {

                "name": "userMod",

                "value": value

            };

            var userXfer = {

                "name": "userXFER",

                "value": "T"

            };

            var userEsc = {

                "name": "user.Escalation",

                "value": "N"

            };

 

 

            var callvariable =

            {

                "CallVariable": cvpTransfer,

                "CallVariable": dialedNumber,

                "CallVariable": userMod,

                "CallVariable": userXfer,

                "CallVariable": userEsc

            };

          dialog.updateCallVariable(callvariable);

 

unfortunately, only the last variable is stored in the callvariable object and the others are lost, would it work if i build the xml object instead of using a javascript variable.?

 

please help me out.

 

Thanks

Aziz.

Outcomes