SIMS 7 - TPStudentContact
This will get all the contacts id’s related to all the students in SIMS system. Sample output from this interface is below
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>
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>