PSI : How to determine if Resource Plan in Project Server 2010 is checked out in c#?

StackOverflow https://stackoverflow.com/questions/9816156

  •  25-05-2021
  •  | 
  •  

문제

anyone know how to check if a Resource Plan is checked out using the PSI? Thanks

도움이 되었습니까?

해결책

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

라이센스 : CC-BY-SA ~와 함께 속성
제휴하지 않습니다 StackOverflow
scroll top