Dovico.TrackITAPI.CPhone.Save(System.String,Dovico.TrackITAPI.CStateInfo)
Function Overview:
This method saves new and existing phone number information as well as allowing the ability to delete existing phone numbers. Xml should be in the format phone.xsd
Parameter List:
sXml - string - string of xml containing phone numbers to add/update/delete in the format phone.xsd
siState - CStateInfo - State information needed to process the transaction
Returns
A string of xml containing the inserted and updated phone number IDs in the order that they were specified in the caller’s xml.
Example:
// build up xml that will insert a phone number for an employee into the database
// and delete an existing phone number
string sXml = "<Phone:PHONES xmlns:Phone=\"http://www.dovico.com/schemas/phone.xsd\" ";
sXml += "LINKID=\"100\" LINKTYPE=\"E\">";
sXml += "<PHONE ID=\"-1\" NUMBER=\"(506) 855-4477\" DESC=\"Example telephone number for DOVICO\" DISPLAY=\"T\"/>";
sXml += "<DELETED><ID>159</ID></DELETED></Phone:PHONES>";
// call the PhoneSave method
wsapi.MethodInvoke("PhoneSave", sXml, stToken);