QueueUpdateProjectTeam() >> Does not work

P

pratyajai

--
Pratya Silasuwan

i try to update project team by this following code but it it not update
###

ProjectWS.ProjectTeamDataSet dsTeam=new ProjectTeamDataSet();
for (int i=0;i<resourceName.Length;i++)
{
ResourceWS.ResourceDataSet.ResourcesRow
r=this.GetResourceData(resourceName);

dsTeam.ProjectTeam.AddProjectTeamRow(projectGuid, r.RES_UID,
Guid.NewGuid(), r.RES_NAME,
r.RES_BOOKING_TYPE, true, r.RES_TYPE, true);

}
Guid jobGuid = Guid.NewGuid();
Guid sessionGuid = Guid.NewGuid();


project.CheckOutProject(projectGuid, sessionGuid, "Auto");

System.Threading.Thread.Sleep(1000);

jobGuid = Guid.NewGuid();
project.QueueUpdateProjectTeam(jobGuid, sessionGuid,
projectGuid, dsTeam);

System.Threading.Thread.Sleep(10000);

jobGuid = Guid.NewGuid();
project.QueueCheckInProject(jobGuid, projectGuid, true,
sessionGuid, "Auto Check In");
 
J

Jim Corbin [MSFT]

The ProjTool test application (see
http://msdn2.microsoft.com/en-us/library/aa494895.aspx) in the Project SDK
download has an example using QueueUpdateProjectTeam. When you use ProjTool,
check the contents of the projectTeamDataSet, and the method to wait for
queue job completion. You also need the BuildTeamOnProject category
permission.
 
P

pratyajai

I try to build team in sdk code sample by enter the RES_UID And
RES_BOOKING_TYPE But it error too.
--
pratyasilasuwan


Jim Corbin said:
The ProjTool test application (see
http://msdn2.microsoft.com/en-us/library/aa494895.aspx) in the Project SDK
download has an example using QueueUpdateProjectTeam. When you use ProjTool,
check the contents of the projectTeamDataSet, and the method to wait for
queue job completion. You also need the BuildTeamOnProject category
permission.


pratyajai said:
--
Pratya Silasuwan

i try to update project team by this following code but it it not update
###

ProjectWS.ProjectTeamDataSet dsTeam=new ProjectTeamDataSet();
for (int i=0;i<resourceName.Length;i++)
{
ResourceWS.ResourceDataSet.ResourcesRow
r=this.GetResourceData(resourceName);

dsTeam.ProjectTeam.AddProjectTeamRow(projectGuid,
r.RES_UID,
Guid.NewGuid(), r.RES_NAME,
r.RES_BOOKING_TYPE, true, r.RES_TYPE, true);

}
Guid jobGuid = Guid.NewGuid();
Guid sessionGuid = Guid.NewGuid();


project.CheckOutProject(projectGuid, sessionGuid, "Auto");

System.Threading.Thread.Sleep(1000);

jobGuid = Guid.NewGuid();
project.QueueUpdateProjectTeam(jobGuid, sessionGuid,
projectGuid, dsTeam);

System.Threading.Thread.Sleep(10000);

jobGuid = Guid.NewGuid();
project.QueueCheckInProject(jobGuid, projectGuid, true,
sessionGuid, "Auto Check In");

 

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

Similar Threads

Error with QueueAddToProject 0
Error creating tasks 3

Top