cancel
Showing results for 
Search instead for 
Did you mean: 
cancel
1503
Views
10
Helpful
4
Replies

Finesse gadget issue

Clifford McGlamry
Spotlight
Spotlight

Struggling with an issue in Finesse.  

 

I have a gadget that works that uses this:

 

displayCall = function (dialog) {
var callVars = dialog.getMediaProperties();

// Examples of getting data from the Dialog object (GET)
/* */

// Example of using data from the dialog to do a web search
$("#bing").attr("src","https://www.test.com/testsite/unprocessedpayment.aspx?q=" + callVars["userCallerName"]);
},

The caller id displays in the upper part of finesse correctly, and will concatenate onto the string for the URL correctly.  

 

However, I cannot get this to work:

displayCall = function (dialog) {
var callVars = dialog.getMediaProperties();

// Examples of getting data from the Dialog object (GET)
$("#dnis").text(dialog.getMediaProperties().DNIS);
/** fromAddress is the callers caller ID info */
$("#fromAddress").text(dialog.getFromAddress());
$("#fromCallerIDName").text(callVars["userCallerName"]);
},

 

I have the fileld defined in the XML along with the other variables (they all work) like this:

<fieldset id="dialogfieldset" class="outline">
<legend>Dialog</legend>
<div><b> DNIS: </b><span id="dnis"></div>
<div><b> ANI: </b><span id="fromAddress"></div>
<div><b> Caller ID Name: </b><span id="fromCallerIDName"></div>
<br>
</fieldset>

 

What am I missing?  Why can't I get the User call variable userCallerName to populate into the field?