Dovico.TrackITAPI.CAddress.Save(System.String,Dovico.TrackITAPI.CStateInfo)
Function Overview:
Responsible for saving address information in the format address.xsd to the database for the specified object.
Parameter List:
sXml - string - address information to be inserted/updated/deleted in the format address.xsd
siState - string -
Returns
A string of xml containing inserted and updated items if successful.
Example:
// build up xml to save an address to employee 105
// LINKID specifies the unique ID for the employee the address belongs to
// LINKTYPE specifies the type of object for the unique ID (E for employee in this case)
string sXml = "<Address:ADDRESSES xmlns:Address=\"http://www.dovico.com/schemas/address.xsd\" ";
sXml += "LINKID=\"105\" LINKTYPE=\"E\"><ADDRESS ID=\"-1\" LINE1=\"236 Example St.\" ";
sXml += "LINE2=\"Suite 119\" CITY=\"Example City\" STATE=\"Example State\" POSTAL=\"55555\" ";
sXml += "DISPLAY=\"T\" URL=\"http://www.dovico.com\" EMAIL=\"example@microsoft.com\"/>";
sXml += "<DELETED><ID>101</ID></DELETED></Address:ADDRESSES>";
// execute the AddressSave
wsapi.MethodInvoke("AddressSave", sXml, stToken);