Author Topic: Get Annex Details from persons object  (Read 2186 times)

Offline rcalleja

  • Newbie
  • *
  • Posts: 3
  • Karma: 0
Get Annex Details from persons object
« 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.

Offline msd86911

  • Newbie
  • *
  • Posts: 20
  • Karma: 4
Re: Get Annex Details from persons object
« Reply #1 on: April 18, 2018, 07:11:02 AM »
Platform SDK for .Net

Offline PeteHoyle

  • Full Member
  • ***
  • Posts: 126
  • Karma: 13
Re: Get Annex Details from persons object
« Reply #2 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]

Offline rcalleja

  • Newbie
  • *
  • Posts: 3
  • Karma: 0
Re: Get Annex Details from persons object
« Reply #3 on: April 20, 2018, 12:36:47 AM »
Thanks