Dovico.TrackITAPI.CAssignment.QuickAssign(System.String,Dovico.TrackITAPI.CStateInfo)
Function Overview:
This method assigns items specified in the xml format quickassign.xsd. There are three attributes that need to be defined within the QUICKASSIGN root element. They are:
ASSIGNEMPLOYEE - Set to T if the employee IDs are IDs of employees, set to F if the EMPLOYEE IDs are IDs of teams.
ASSIGNTASK - Set to T if assigning by task and TASK IDs are tasks, Set to F if assigning by task group and TASK ids actually represent task groups.
ASSIGNTASKSWITHTASKGROUP - Set to T if you wish all tasks belonging to a task group to be assigned when assigning the task group, set to F if you only wish to assign the task group itself.
Parameter List:
sXml - string - xml for the assignments in the format quickassign.xsd
siState - CStateInfo - State Information needed to process the transaction
Returns
A string of xml containing assignment information for assignments that did not get created because they already exist.
Example:
// initialize a string of xml that is assigning by employee (no assigning task group)
string sXml = "<QuickAssign:QUICKASSIGN xmlns:QuickAssign=\"http://www.dovico.com/schemas/quickassign.xsd\" ";
sXml += " ASSIGNTASKSWITHTASKGROUP=\"F\" ASSIGNEMPLOYEE=\"T\" ASSIGNTASK=\"T\">";
sXml += "<PROJECTS><ID>105</ID></PROJECTS><EMPLOYEES><ID>100</ID></EMPLOYEES>";
sXml += "<TASKS><ID>105</ID></TASKS></QuickAssign:QUICKASSIGN>";
// call the method
wsapi.MethodInvoke("AssignmentQuickAssign", sXml, stToken);