anyone know how to check if a Resource Plan is checked out using the PSI? Thanks
Asked
Active
Viewed 887 times
1 Answers
1
You can do this via the PSI web service ResourcePlan.
Just add the web service reference to your project and initialize a new soap client:
//init the soap client
ResourcePlanSoapClient resSvc = new ResourcePlanSoapClient();
//your project id
Guid prjGuid = new Guid("30937680-39FA-4685-A087-90C73376B2BE");
//read the status
ResPlanStatus status = resSvc.ReadResourcePlanStatus(prjGuid);
The enum contains three states:
- Absent (not in use)
- Working (checked out)
- Published (checked in)
I hope this will help you
Regards Florian

cansik
- 1,924
- 4
- 19
- 39
-
That did it. Thanks! Going to post a related question about deleting/recreating the resource plan, maybe you'll know that one too! – TamarindoSean Apr 27 '12 at 19:31
-
Here is the link to the new question if your interested, thanks! http://stackoverflow.com/questions/10356845/psi-deleting-and-recreating-the-resource-plan-in-project-server-2010 – TamarindoSean Apr 27 '12 at 19:40