c# - List Published Projects From MS Project 2010 API -


the project api allows list projects using

projectdataset data = client.readprojectlist(); foreach (projectdataset.projectrow projectrow in data.project){...} 

this api call deficient due fact returns projects working store , not published store. seems expected check every project guid against published store incredibly slow.

int = projectrow.proj_type; if (i == 0){     projectdataset publishedprojectdataset = client.readproject(projectrow.proj_uid, datastoreenum.publishedstore);     if (publishedprojectdataset == null) { continue; } } 

does know of anyway list published projects?

projectclient.readprojectstatus should work . e.g.

 // list of projects.  svcproject.projectdataset projectds = projectclient.readprojectstatus(  guid.empty, svcproject.datastoreenum.publishedstore,  string.empty, (int)pslibrary.project.projecttype.project); 

documentation located @ here.


Comments

Popular posts from this blog

android - Get AccessToken using signpost OAuth without opening a browser (Two legged Oauth) -

org.mockito.exceptions.misusing.InvalidUseOfMatchersException: mockito -

google shop client API returns 400 bad request error while adding an item -