© 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 - TPStudentContact

TPStudentContact.GetXmlStudentContacts()

This will get all the contacts id’s related to all the students in SIMS system. Sample output from this interface is below

TPStudentContact.GetXmlStudentContacts(int StudentId)

This will get contact id for a student id supplied as parameter. Sample output from this interface is specified as below

<?xml version="1.0" encoding="iso-8859-1" standalone="yes"?>
<StudentContacts>
  <StudentContact>
    <Student>279</Student>
    <Contact>280</Contact>
    <ContactTypeId>13</ContactTypeId>
    <ContactStatus />
    <Priority>3</Priority>
    <ParentalResponsibility>T</ParentalResponsibility>
  </StudentContact>
</StudentContacts>

 

TPStudentContact.GetXmlChangedStudentContacts(DateTime referenceDate)

The call to interface on 04/01/2010 will get all the contactId associated to students [StudentId] from SIMS system.

When the date passed to this interface is on/after the logging date, it will only get the information of changed contacts when the contacts associated with a person have been modified/added or deleted from SIMS System.

The below sample code and output is based on following:

Deleting an existing contact associated to a student [Ben Abbot] and adding a new contact to it.

TPStudentContact contactInfo = new TPStudentContact();
string changeddata = contactInfo.GetXmlChangedStudentContacts(System.DateTime.Now);

Output :

<?xml version="1.0" encoding="iso-8859-1" standalone="yes"?>
<StudentContacts>
  <StudentContact deleted="true">
    <Student>5253</Student>
    <Contact>176</Contact>
  </StudentContact>
  <StudentContact>
    <Student>5253</Student>
    <Contact>7661</Contact>
    <ContactTypeId>16</ContactTypeId>
    <ContactStatus />
    <Priority />
    <ParentalResponsibility>F</ParentalResponsibility>
  </StudentContact>
</StudentContacts>

 

SIMS 7 RESOURCES

Related resources for SIMS 7