cancel
Showing results for 
Search instead for 
Did you mean: 
cancel
663
Views
5
Helpful
4
Replies
Highlighted
Beginner

How do I fetch a custom ECC within a 3rd party gadget?

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?

Everyone's tags (3)
4 REPLIES 4
Enthusiast

Re: How do I fetch a custom ECC within a 3rd party gadget?

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

Beginner

Re: How do I fetch a custom ECC within a 3rd party gadget?

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.

Contributor

Re: How do I fetch a custom ECC within a 3rd party gadget?

There is the UpdateCallData API.

There is some discussion on how to setup an ECC variable here...

http://www.cisco.com/c/en/us/td/docs/voice_ip_comm/cust_contact/contact_center/finesse/finesse_1001/user/guide/CFIN_BK_CF7BB5C7_00_cisco-finesse-administration-1001/CFIN_BK_CF7BB5C7_00_cisco-finesse-administration-1001_chapter_011.html

And, in JavaScript...

states = finesse.restservices.User.States;

Beginner

Re: How do I fetch a custom ECC within a 3rd party gadget?

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.

CreatePlease to create content
Content for Community-Ad
August's Community Spotlight Awards