Save

 

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

 

 

Function Overview:

Saves currency information to the database from xml specified in the format currency.xsd. Note that currencies do not support the saving of custom fields, addresses, phone numbers, notes etc.

 

 

Parameter List:

sXml - string - string of xml in the format currency.xsd

siState - CStateInfo - State information needed to process the transaction

 

Returns

A string of xml containing the IDs of inserted and updated items.

 

Example:

// build up xml to insert a new currency into the database

string sXml = "<Currency:CURRENCIES xmlns:Currency=\"http://www.dovico.com/schemas/currency.xsd\">";

sXml += "<CURRENCY ID=\"-1\" NAME=\"Example Currency\" CONVERSION=\"1.5\" DESC=\"Currency description\" ";

sXml += "ARCHIVE=\"F\" OUTSIDE=\"\" HIDE=\"F\">";

sXml += "</CURRENCY></Currency:CURRENCIES>";

// call the currency save

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