Dovico.TrackITAPI.CEmployee.CopyAssignments(System.String,Dovico.TrackITAPI.CStateInfo)
Function Overview:
Copies an employee's assignments to one or more employees if the assignment doesn't already exist.
Parameter List:
sXml - string - xml containing source id of employee to copy assignments from as well as destination ids for employees to copy assignments to in the format employeecopyassignments.xsd
siState - CStateInfo - state information necessary to process transaction
Returns
A string indicating the projects and tasks modified for the new employee assignments
Example:
// initialize a string of xml containing the SOURCEID and DESTINATIONIDS for the copy
string sXml = "<EmployeeCopyAssignments:EMPLOYEECOPYASSIGNMENTS xmlns:EmployeeCopyAssignments=\"http://www.dovico.com/schemas/employeecopyassignments.xsd\" ";
sXml += "SOURCEID=\"100\"><DESTINATIONIDS><ID>411</ID></DESTINATIONIDS></EmployeeCopyAssignments:EMPLOYEECOPYASSIGNMENTS>";
// call the method
wsapi.MethodInvoke("EmployeeCopyAssignments", sXml, stToken);