I have built a Finesse Gadget in UCCE which performs a pop when a new Chat arrives. The type of pop needs to change depending on the value of callVariable4. I am able to access the callVariables in other voice specific gadgets but not when an ECE Chat arrives at the agent in this gadget using the "dialog.getMediaProperties()" method.
Are there any examples or documents that i could look at for tips?
Sorry Denise, im not sure why the portal did that, I attached a txt file with the console content to the email reply to your post and the site seems to have displayed the contents of the file as the response.
The email body was "..
Thanks for responding Denise.
I do see the callVariable4 in the console when the Chat is offered and all subsequent actions also, I have attached the console output for your reference."
Well that is a a good sign that the callvariable4 is available.
What I would do is use the browser's developer tools - breakpoint (or log it) to see the data in the dialog object.
* Is the dialog object you are using the one for chat? Verify with the dialogId
* Does the rest of the data in the dialog object match the notification?
* Could it be that at the time you are using the getMediaProperties, that the callVariables aren't there yet? A lot of times the variables gets updated later?
All of the above can be debugged by using the breakpoint of the developer tools.
Thanks for that, I think the issue is the dialog I'm using.. if anyone has any examples of how to initiate/access the dialogs for ECE chat that would really help... ?
Sorry, I don't have any examples for dialogs for ECE. Maybe folks in this community has something for you.
If you haven't already used the breakpoints in the browser's developer tools, you can easily reverse engineer the objects and data that is available for the gadget.