cancel
Showing results for 
Search instead for 
Did you mean: 
cancel
2079
Views
0
Helpful
4
Replies

Cisco Demo Sales Force Gadget

Wilfred Dsouza
Level 1
Level 1

Is there a way to pass variables from Finesse desktop to the Cisco Demo SFDC Embedded within the Finesse desktop?

Cheers,

Wilfred

4 Replies 4

tephipps
Cisco Employee
Cisco Employee

Can you elaborate?  which demo?

I am guessing dcloud since it has a screen pop with SFDC

This is with UCCE and the SFDC sample gadget which is in the developer website, Sorry for the confusion.

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

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: