none
Change Project Start Date with PSI RRS feed

  • Question

  • hello forum members,

    does anyone knows how to change a project start date on its creation with PSI?

    or does a project needs to be updated to change a start date?

    I tried this, but it may not updating the correct field  because after the code runs, I still see the start date as the date i run the code.

     DateTime projectStartDate = Convert.ToDateTime("8/29/2010");

      using (OperationContextScope ocs = new OperationContextScope(projectClient.InnerChannel))
                    {
                        //check out the project
                        projectClient.CheckOutProject(projectUids, sessionId, SESSION_DESCRIPTION);

           SvcProject.ProjectDataSet projectds = projectClient.ReadProject(projectUids, SvcProject.DataStoreEnum.WorkingStore);
                      
                        projectds.Project[0].PROJ_INFO_START_DATE = projectStartDate;

                        projectClient.QueueUpdateProject(jobId, sessionId, projectds, false);

                        //check the project back in
                        projectClient.QueueCheckInProject(jobId, projectUids, false, sessionId,                         SESSION_DESCRIPTION);


                    }


    tatiana



    Thursday, August 28, 2014 6:39 PM

Answers