Quantcast
Channel: Project Customization and Programming forum
Viewing all articles
Browse latest Browse all 5347

How to create a Sample Template in Project Server 2010

$
0
0

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.


Viewing all articles
Browse latest Browse all 5347

Trending Articles



<script src="https://jsc.adskeeper.com/r/s/rssing.com.1596347.js" async> </script>