GetInfo

 

Dovico.TrackITAPI.CCustomField.GetInfo(System.String,Dovico.TrackITAPI.CStateInfo)

 

 

Function Overview:

This method returns an xml string that contains custom field template information and values for a particular type (e.g. Employee). Xml should be in the format customfieldquery.xsd. Specify the type in the root element's LINKTYPE attribute (CONSTANTS.LINKTYPE*), specify the LINKID along with that if you are retrieving custom fields for a particular task/expense category.

 

 

Parameter List:

sXml - string - xml in the format customfieldquery.xsd to query the object that you are interested in

siState - CStateInfo - state information needed to process the transaction

 

Returns

A string of xml containing the custom fields information requested.

 

Example:

// build up xml to query for custom fields available for a Time Entry (LINKTYPE=M)

// with a particular task selected (LINKID=101)

string sXml = "<CustomFieldQuery:CUSTOMFIELDQUERY xmlns:CustomFieldQuery=\"http://www.dovico.com/schemas/customfieldquery.xsd\" ";

sXml += "LINKTYPE=\"M\" LINKID=\"101\"/>";

// call the custom fields GetInfo method

string sCustomFieldTemplates = wsapi.MethodInvoke("CustomFieldGetInfo", sXml, stToken);