Dovico.TrackITAPI.CGroup.Save(System.String,Dovico.TrackITAPI.CStateInfo)
Function Overview:
Saves group information to the database. The information should be specified in format group.xsd. The TYPE field is a constant found in CONSTANTS.GROUP_TYPE*.
Parameter List:
sXml - string - xml group information in the format group.xsd
siState - CStateInfo - State information needed to process the transaction
Returns
A string of results listing the items inserted and updated with this save.
Example:
// build up xml to insert a new task group into the database
string sXml = "<Group:GROUPS xmlns:Group=\"http://www.dovico.com/schemas/group.xsd\">";
sXml += "<GROUP ID=\"-1\" TYPE=\"A\" NAME=\"Example Task Group\" DESC=\"this is a test\" LEADER=\"0\" ";
sXml += "EFFDATE=\"2003-01-01T00:00:00\" ARCHIVE=\"F\" OUTSIDE=\"\" HIDE=\"F\"/>";
sXml += "</Group:GROUPS>";
// call the GroupSave method
wsapi.MethodInvoke("GroupSave", sXml, stToken);