GetAssignments

 

Dovico.TrackITAPI.CCustomTemplate.GetAssignments(System.String,Dovico.TrackITAPI.CStateInfo)

 

 

Function Overview:

This method builds a list of available and assigned items to a custom template. The query xml should be constructed in customtemplateassignments.xsd format. If you are inquiring about a TIME ENTRY custom template, the return items will be tasks, if you are inquiring about an ACTUAL EXPENSE custom template, expense categories (group) items will be returned. All other kinds of custom templates will return empty lists.

 

 

Parameter List:

sXml - string - XML of the customtemplateassignments.xsd format, determines the information requested.

siState - string - State information needed to process this request.

 

Returns

a string of xml containing the available and assigned items for a custom template

 

Example:

// Initialize a string of exml that contains the CUSTOMTEMPLATE ID and LINKTYPE

//

string sXml = "<CustomTemplateGetAssignments:CUSTOMTEMPLATEGETASSIGNMENTS xmlns:CustomTemplateAssignments=\"http://www.dovico.com/schemas/customtemplategetassignments.xsd\" ";

sXml += "CUSTOMTEMPLATEID=\"" + ids[0].ToString() + "\" CUSTOMTEMPLATELINKTYPE=\"X\"/>";

 

// Now we only need to make the call:

string sCustomTemplateAssignments = wsapi.MethodInvoke("CustomTemplateGetAssignments", sXml, stToken);