project 2010: updating time phased data on behalf of another resource RRS feed

  • Question

  • Hi,

    I am trying to update the actual time phased work time for a different resource through c#. I always get the AssignmentUidInvalid error. I'm sure I am missing something here. This is my code:

     changeXml.Append("<Proj ID=\"" + projectGUID.ToString() + "\">");
     changeXml.Append("<Assn ID=\"CA669AEB-F00E-4A69-B06B-BEA3F5180420\" ResID= \"97BAB1D2-6177-4991-BA35-6244F90995A0\">");
     changeXml.Append("<PeriodChange PID=\"" + pidActualWrk + "\" Start=\"" + startDate + "\" End=\"" + endDate + "\">" + workTime.ToString() + "</PeriodChange>");


    I know we can do it through impersonation but project 2010 SDK states that we can user the ResID field in the changeXML to modify another resource's data without using impersonation which is actually also so much easier than impersonation. Any help is greatly appreciated.


    Thursday, January 20, 2011 8:27 AM

All replies