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

TPMessageRead.GetXmlPersonMessages (int personId)

This interface gets all the messages sent to the supplied personId.

Sample code and output for this interface is shown below:

TPMessageRead msgRead = new TPMessageRead();
string testdata = msgRead.GetXmlPersonMessages(26);
<?xml version="1.0" encoding="iso-8859-1" standalone="yes"?>
<Messages>
  <Message>
    <MessageID>7</MessageID>
    <MessageSenderID>86</MessageSenderID>
    <Priority>Low</Priority>
    <Subject>General</Subject>
    <MessageText>Test Message sent by Two, User to Anita Abell</MessageText>
    <MessageDate>2010-01-11T13:47:00</MessageDate>
  </Message>
  <Message>
    <MessageID>8</MessageID>
    <MessageSenderID>5</MessageSenderID>
    <Priority>High</Priority>
    <Subject>General</Subject>
    <MessageText>General Message of High Priority sent to Anita Abell</MessageText>
    <MessageDate>2010-01-11T13:50:00</MessageDate>
  </Message>
</Messages>

 

SIMS 7 RESOURCES

Related resources for SIMS 7