Genesys CTI User Forum > Genesys-related Development

Create a Transfer button in IWS Customization

<< < (3/3)

PeteHoyle:
[quote author=jvallejos link=topic=8749.msg45132#msg45132 date=1478620751]
Hello PeteHoyle and daniel_san,
Please. Your  have other code to the transfer ?
Me Can sharing you please.
I used container.Resolve<IInteractionManager>(); but not know how I use this interface.

Best regards
[/quote]

It depends where your custom button is located, if it is in the IntearctionView area you can get the IInteractionVoice from the Context:

[code]
        public void Create()
        {
            IDictionary<string, object> contextDictionary = Context as IDictionary<string, object>;
            object caseObject;
            contextDictionary.TryGetValue("Case", out caseObject);
            ICase @case = caseObject as ICase;
            if (@case != null)
            {
                if (@case.MainInteraction is IInteractionVoice)
                {
                    IInteractionVoice iv = @case.MainInteraction as IInteractionVoice;
                    if (iv != null)
                    {
                    }
                }
            }
        }
[/code]

Navigation

[0] Message Index

[*] Previous page

Go to full version