cancel
Showing results for 
Search instead for 
Did you mean: 
cancel
258
Views
0
Helpful
1
Replies

update multiple call variables in a single dialog update request.

azizshaik
Level 1
Level 1

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.

1 Reply 1

ewindgat
Level 5
Level 5

There is some documentation here about using XML...

Dialog—Update Call Variable Data