3

When I access https://[sharepoint]/sites/pwa/_api/ProjectServer/Projects I see "ProjectRemainingWork" as a field. How can I retrieve this field if I query Project Server via ProjectContext?

My code:

using (var clientContext = new ProjectContext(SharePointSite))
{
            clientContext.Credentials = new SharePointOnlineCredentials(Login, GetSecurePWD(PWD));
            clientContext.Load(clientContext.Projects);
            clientContext.ExecuteQuery();

            foreach (var project in clientContext.Projects)
            {
                  Console.WriteLine(project.Name);
                  // & RemainingWork: Console.WriteLine(project.RemainingWork);          
            }
}

Update: ah, I'm not interested in EAC, it was a mistake. Only RemaingWork is important

2

I'm not sure this is possible. In theory this data is available via the project's summary task. But according to this and this, the summary task is not available via CSOM.

| improve this answer | |

Your Answer

By clicking “Post Your Answer”, you agree to our terms of service, privacy policy and cookie policy

Not the answer you're looking for? Browse other questions tagged or ask your own question.