cancel
Showing results for 
Search instead for 
Did you mean: 
cancel
Announcements

600
Views
0
Helpful
1
Replies
arulselvanj
Beginner

Call variable update on transfer back to IVR

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
Frequent Contributor

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?

Content for Community-Ad