Get IInteractionVoice having IInteraction

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.

1 Like

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:

  • GetAllAttachedData
  • GetIWCallType

or properties like:

  • UserData
  • Type
2 Likes

Can please give me an example line how to retrieve AttributeCallType and AttributeUserData? While having IInteraction interaction = Model.Interaction; Thanks.

1 Like

Little bit more effort,man :slight_smile:

string callType = interaction.Type;
            IDictionary<string, object> userData = interaction.UserData;
            KeyValueCollection attachedData = interaction.GetAllAttachedData();

Sorry, man. Now I get it. All good. Thanks :slight_smile:

1 Like