03-04-2015 02:39 PM
So I read through the documents and I am fairly sure the function I want is getMediaProperties().
I know something like :
dialog.getMediaProperties().callVariable10
will fetch me CV10. So lets assume a custom variable named user.WakkaWakka was defined. And we know it works because the test string we defined in the script editor is showing up in that fancy CallControl gadget. So my first instinct is to use something like :
dialog.getMediaProperties().user.WakkaWakka
but no luck, I tested that the hand off between the xml and the js was good by putting a callVariable in the place of user.WakkaWakka and that was fine, so I know the issue is in the initial grab from the dialog and obviously I'm not doing it right.
So, how do I fetch a custom ECC from within a 3rd party gadget using javascript without jumping through some insane hoops?
03-06-2015 10:14 AM
Hello Colin,
I'll want to display into Finesse Desktop an URL which is passed by the IVR through an ECC variable.
Do you have any hints on how to do this? Any Cisco Custom Gadgets that can be useful? Did you fouund a solution to your problem?
Thanks, Rui
03-06-2015 10:48 AM
Sadly, the fetching of custom ECC variables still has quite a few of us pulling out our hair. The problem is that if it isn't an out of the box variable we can't seem to fetch it. If you can figure that out for us, I will show you how to to open up web pages or any valid URI as either a pop up or within a frame.
03-13-2015 10:00 AM
There is the UpdateCallData API.
There is some discussion on how to setup an ECC variable here...
And, in JavaScript...
states = finesse.restservices.User.States;
03-17-2015 08:41 AM
In my custom gadgets, I use this:
var callVars = dialog.getMediaProperties();
Then, I can access ECC variables like this:
somevariable = callVars["user.ecc_variable_name"];
Hope this helps,
Stuart W.
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