Dovico.TrackITAPI.CClient.Save(System.String,Dovico.TrackITAPI.CStateInfo)
Function Overview:
Saves client information to the database specified in the xml format client.xsd
Parameter List:
sXml - string - string of xml containing client information in the format client.xsd
siState - CStateInfo - State information needed to process the transaction
Returns
A string of xml containing the IDs of inserted and updated items.
Example:
// initialize a string of xml that will add a new client to the database
string sXml = "<Client:CLIENTS xmlns:Client=\"http://www.dovico.com/schemas/client.xsd\">";
sXml += "<CLIENT ID=\"-1\" REGION=\"0\" NAME=\"New Client\" ACR=\"New-\" ";
sXml += "CONTACT=\"Example Contact\" EMAIL=\"example@microsoft.com\" ARCHIVE=\"F\" OUTSIDE=\"\" HIDE=\"F\" INTEGRATE=\"\"/>";
sXml += "</Client:CLIENTS>";
// call the client save method
wsapi.MethodInvoke("ClientSave", sXml, stToken);