Hello,
I am trying to create and publish the template using PSI in Project Server 2010. How can this be done? I tried the following code but couldn't publish it.
ProjectWebSvc.ProjectDataSet templateDs = new ProjectWebSvc.ProjectDataSet(); ProjectWebSvc.ProjectDataSet.ProjectRow templateRow = templateDs.Project.NewProjectRow(); templateRow.PROJ_UID = Guid.NewGuid(); templateRow.PROJ_NAME = "Its a new template"; templateRow.WPROJ_DESCRIPTION = "Temporary template for use in CreateProjectFromTemplate example."; templateRow.PROJ_TYPE = (int)PSLibrary.Project.ProjectType.Template; templateDs.Project.AddProjectRow(templateRow); // Write the new template information to the database. jobId = Guid.NewGuid(); projectSvc.QueueCreateProject(jobId, templateDs, false); WaitForQueue(q, jobId);
Thank you.