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

Call variable update on transfer back to IVR

arulselvanj
Level 1
Level 1

Hi All,

I am updating call variable from agent desktop and transfer back to ICM using following code, It passed to ICM for first time (For first call after agent logged in), Again  if i set variable and transfer to ICM for second new ! ! call variable is not sent to ICM,

Below is the logic  i am using.

value = { CallVariable: { name: "callVariable7", value: "XXXXX"} };

updateCallvariables: function (value, options) {

        this.isLoaded();

    var mediaProperties =   {  "callvariables": value       };

        options = options || {};

        options.content = {};

        options.content[this.getRestType()] =

        {

            "mediaProperties": mediaProperties,

            "requestedAction": finesse.restservices.Dialog.Actions.UPDATE_CALL_DATA

        };

        options.method = "PUT";

        this.restRequest(this.getRestUrl(), options);

return this;

}

        return this;

    },

1 Reply 1

dlender
Level 6
Level 6

Your logic looks correct. I don’t know why it would work on first call but not second call. Are you checking that UPDATE_CALL_DATA is enabled in the agent’s participant action for the dialog?