Genesys CTI User Forum
Genesys CTI User Forum => Genesys-related Development => Topic started by: innspiron on January 27, 2015, 06:17:34 AM
-
I have IInteraction interaction = Model.Interaction; But what I need is information from IInteractionVoice. For example I need AttributeCallType, AttributeUserData. How do I extract that from IInteraction? I know its in, as while debugging in immediate window I type "?interaction" I see its there, but how to save it to string on run time? Thanks.
-
You can get requested information (callType, userData, etc) from IInteraction object - so you do not need IInteractionVoice object type.
-
How to do that? Tank you.
-
When you check namespace genesyslab.desktop.modules.core.model.interactions you will see which methods and properties this calls has.
There are methods like:
[list]
[li]GetAllAttachedData[/li]
[li]GetIWCallType[/li]
[/list]
or properties like:
[list]
[li]UserData[/li]
[li]Type[/li]
[/list]
-
Can please give me an example line how to retrieve AttributeCallType and AttributeUserData? While having IInteraction interaction = Model.Interaction; Thanks.
-
Little bit more effort,man :)
[code]string callType = interaction.Type;
IDictionary<string, object> userData = interaction.UserData;
KeyValueCollection attachedData = interaction.GetAllAttachedData();[/code]
-
Sorry, man. Now I get it. All good. Thanks :)