© 2018 Capita Business Services Ltd. All rights reserved.

Capita Education Software Solutions is a trading name of Capita Business Services Ltd. Our Registered office is 30 Berners Street, London, W1T 3LR and our registered number is 02299747. Further information about Capita plc can be found in our legal statement.

SIMS 7 - TPPersonContact

TPPersonContact.GetXmlContacts()

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

TPPersonContact.GetXmlContacts(int contactId)

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>

TPPersonContact.GetXmlChangedContacts(DateTime referenceDate)

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:

  1. Added Middle Name(s) to Contact ‘David Abbey’
  2. 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>

 

 

SIMS 7 RESOURCES

Related resources for SIMS 7