03-15-2021 03:19 PM - edited 03-15-2021 03:22 PM
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?
03-15-2021 04:16 PM
Solved my own problem. For some reason, even though updated code was on the server, it was not actually using it. Figured this out by copying the gadget into a new directory and mapping it into the desktop XML.
Still don't understand why this was happening. I had even restarted the Finesse Tomcat service, and that still didn't address the issue.
03-16-2021 10:03 AM
Hi,
The Finesse gadgets get cached (big time). During development, the best way to test your gadget is to use the nocache option: https://developer.cisco.com/docs/finesse/#!gadget-caching
Of course this should not be used for production because it would defeat performance reasons for the caching.
Thanx,
Denise
03-16-2021 10:43 AM
Interesting. So the nocache option go to when you login to the finesse desktop like this:
https://uccxserver:8445/desktop?nocache
Can it go into the desktop configuration XML within the finesse administration for that specific gadget?
03-16-2021 11:46 AM
Hi,
Yes you add it to the url in your browser. I typically like to log in the agent first, then add &nocache at the end of it. So using the DevNet sandbox, it ended up being https://hq-uccx.abc.inc:8445/desktop/container/?locale=en_US&nocache
Can it go into the desktop configuration XML within the finesse administration for that specific gadget?
No it cannot.
Thanx,
Denise
Discover and save your favorite ideas. Come back to expert answers, step-by-step guides, recent topics, and more.
New here? Get started with these tips. How to use Community New member guide