QuickUnassign

 

Dovico.TrackITAPI.CAssignment.QuickUnassign(System.String,Dovico.TrackITAPI.CStateInfo)

 

 

Function Overview:

This method unassigns employees, tasks or task groups specified by using xml in the format quickassign.xsd. There are three attributes that need to be defined within the QUICKASSIGN root element (although in the unassign only two are actually used). 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 unassigning tasks and TASK IDs are tasks, Set to F if unassigning task groups and TASK ids actually represent task groups.

ASSIGNTASKSWITHTASKGROUP - This is ignored for the unassign.

 

 

Parameter List:

sXml - string - xml in the format quickassign.xsd that contains the employees, tasks or task groups to unassign

siState - StateInfo - State Information needed to process the transaction

 

Returns

A string reserved for future use.

 

Example:

// initialize a string of xml that is unassigning by employee

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("AssignmentQuickUnassign", sXml, stToken);