Save

 

Dovico.TrackITAPI.CNote.Save(System.String,Dovico.TrackITAPI.CStateInfo)

 

 

Function Overview:

Saves note information specified in the format note.xsd. Notes are attached to an object in the database by the LINKID which is the ID of the item the note is attached to and the LINKTYPE which identifies the type of object the ID is from.

 

 

Parameter List:

sXml - string - string of xml containing the notes to be inserted/updated in the format note.xsd

siState - CStateInfo - State Information needed to process transaction

 

Returns

A string of xml containing the inserted/updated items.

 

Example:

// build up xml to save a new note into the database,

// and delete an existing note with ID 100

string sXml = "<Note:NOTES xmlns:Note=\"http://www.dovico.com/schemas/note.xsd\" LINKID=\"100\" LINKTYPE=\"E\">";

sXml += "<NOTE ID=\"-1\" NOTE=\"This is a new example note\" DATE=\"2003-01-01T00:00:00\"/>"; sXml += "<DELETED><ID>100</ID></DELETED>";

sXml += "</Note:NOTES>";

// call the NoteSave method

wsapi.MethodInvoke("NoteSave", sXml, stToken);