10-16-2015 03:13 PM - edited 03-14-2019 03:20 PM
Is there a way to pass variables from Finesse desktop to the Cisco Demo SFDC Embedded within the Finesse desktop?
Cheers,
Wilfred
10-19-2015 12:33 PM
Can you elaborate? which demo?
10-19-2015 12:47 PM
I am guessing dcloud since it has a screen pop with SFDC
10-19-2015 07:26 PM
This is with UCCE and the SFDC sample gadget which is in the developer website, Sorry for the confusion.
10-20-2015 12:17 PM
Let me know if this helps....
To access UCC call variables in Finesse, you need to have this namespace convention with accessing the variable, for example user.ecc_variable_name
somevariable = callVars["user.ecc_variable_name"];
And to access...
//declare the arrary
var callvars = new Array();
//populate the arrary
callvars = dialog.getMediaProperties();
//check is a call variable is not null, then set access a call variable.
if (callvars["callVariable3"] == null )
{
There is also this code, which you might already know...
var callvar = {
"name" : "CallVarialbe1",
"value" : "Variable Value"
};
var callvariable = { "CallVariable" : callvar };
var mediaProperties = { "callvariables": callvariable };
var options = options || {};
options.content = {};
options.content["Dialog"] =
{
"mediaProperties": mediaProperties,
"requestedAction": "UPDATE_CALL_DATA"
};
options.method = "PUT";
options.success = function() {
_clientLogger.log("Call Vars updated successfully");
};
options.error = function() {
console.error("Failed to update call variable");
};
// Update the variables
currDialog.restRequest(currDialog.getRestUrl(), options
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: