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

Call variable update on transfer back to IVR

arulselvanj
Beginner
Beginner

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
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?

Getting Started

Find answers to your questions by entering keywords or phrases in the Search bar above. New here? Use these resources to familiarize yourself with the community: