Change Project Owner programmatically using PSI

B

bobmcl

Is it possible to change the Project Owner programmatically through the PSI?
Ideally we would like to be able to mass-transfer a series of projects from
one project owner to another.

Thanks,

Bob
 
C

Cutter

Just open the dataset of the project and change the owner value like this:

wsProject.ProjectDataSet projDS = project.ReadProject(projectGUID,
wsProject.DataStoreEnum.WorkingStore);

projDS.Tables[projDS.Project.TableName].Rows[0][projDS.Project.ProjectOwnerIDColumn] = projectOwnerGUID.ToString();

Hope this helps.
 

Ask a Question

Want to reply to this thread or ask your own question?

You'll need to choose a username for the site, which only take a couple of moments. After that, you can post your question and our members will help you out.

Ask a Question

Top