SIMS 7 - TPPersonContact
This will get information of all the contacts within SIMS system. IsActive element in the output from this interface will indicate whether these contacts are still active within SIMS system or not. Sample output from this interface is as below
This will get information of information of the contact supplied as input parameter. IsActive element in the output from this interface will indicate whether this contact is still active within SIMS system or not. Sample code and output from this interface is as below
TPPersonContact personContact = new TPPersonContact();
string contactXml = personContact.GetXmlContacts(7339);
<?xml version="1.0" encoding="iso-8859-1" standalone="yes"?>
<Contacts>
<Contact>
<PersonID>7339</PersonID>
<Forename>David</Forename>
<Surname>Abbey</Surname>
<ChosenName />
<MiddleName />
<LegalSurname />
<Gender>Female</Gender>
<GenderID>1</GenderID>
<DOB />
<Title>Mr</Title>
<Honours />
<Salutation>Mr Abbey</Salutation>
<Addressee>Mr D Abbey</Addressee>
<FirstLanguage />
<JobTitle>I.T Technician</JobTitle>
<Active>T</Active>
</Contact>
</Contacts>
The call to interface on 04/01/2010 will get all the contacts from SIMS system.
This interface will get only data when a contact is modified/added or deleted from SIMS system. The below sample code and output is based on following:
- Added Middle Name(s) to Contact ‘David Abbey’
- Added a new Contact in SIMS System as TestS,Test
TPPersonContact contactInfo = new TPPersonContact();
string changeddata = contactInfo.GetXmlChangedContacts(System.DateTime.Now);
<?xml version="1.0" encoding="iso-8859-1" standalone="yes"?>
<Contacts>
<Contact>
<PersonID>7339</PersonID>
<Forename>David</Forename>
<Surname>Abbey</Surname>
<ChosenName />
<MiddleName>Senior</MiddleName>
<LegalSurname />
<Gender>Female</Gender>
<GenderID>1</GenderID>
<DOB />
<Title>Mr</Title>
<Honours />
<Salutation>Mr Abbey</Salutation>
<Addressee>Mr D Abbey</Addressee>
<FirstLanguage />
<JobTitle>I.T Technician</JobTitle>
<Active>T</Active>
</Contact>
<Contact>
<PersonID>7661</PersonID>
<Forename>TestF</Forename>
<Surname>TestS</Surname>
<ChosenName />
<MiddleName />
<LegalSurname />
<Gender>Female</Gender>
<GenderID>1</GenderID>
<DOB />
<Title>Mrs</Title>
<Honours />
<Salutation />
<Addressee />
<FirstLanguage />
<JobTitle />
<Active>T</Active>
</Contact>
</Contacts>