Genesys CTI User Forum

Genesys CTI User Forum => Genesys-related Development => Topic started by: rcalleja on April 17, 2018, 11:01:40 PM

Title: Get Annex Details from persons object
Post by: rcalleja on April 17, 2018, 11:01:40 PM
I am using a C sharp project in Visual Studio 2017. What SDK function or class can I use to get info from the annex tab of the object.
Title: Re: Get Annex Details from persons object
Post by: msd86911 on April 18, 2018, 07:11:02 AM
Platform SDK for .Net
Title: Re: Get Annex Details from persons object
Post by: PeteHoyle on April 18, 2018, 02:02:33 PM
Use the Platform SDK for .Net.

To simplify things I would recommend that you use the COM Application Block, there is a sample provided with the PSDK that shows you how to use the COM Application Block and the code you need to get the Annex of a Person is below:

                [code]
                CfgPersonQuery q = new CfgPersonQuery();
                q.UserName = "Monique";
                CfgPerson person = confService.RetrieveObject<CfgPerson>(q);
                if (person != null)
                {
                    KeyValueCollection annex = person.UserProperties;
                }
                [/code]
Title: Re: Get Annex Details from persons object
Post by: rcalleja on April 20, 2018, 12:36:47 AM
Thanks