Take the 2-minute tour ×
SharePoint Stack Exchange is a question and answer site for SharePoint enthusiasts. It's 100% free, no registration required.

I'm trying to get the ProjectSiteUrl included/initialized when I retrieve all projects.

Similar to how the Sharepoint CSOM can query lists. Eg:

ListCollection lists = site.Lists;
IEnumerable<SP.List> listsCollection = context.LoadQuery(lists.Include(l => l.Id, l => l.Title, l => l.AnotherField));

In the CSOM for Project Server 2013, if I have an individual project I can do this:

PublishedProject pubProject = context.Projects.GetById(uniqueId);
context.Load(pubProject, p => p.Id, p => p.Name, p => p.ProjectSiteUrl);

Also with JSOM for Project Server 2013, in a sample (that comes with the Projects SDK) I see you can do this:

projects = projContext.get_projects();
projContext.load(projects, 'Include(Id, Name, ProjectSiteUrl)');

Which makes me think I can do this for Projects CSOM. How do I do this with the CSOM for a ProjectCollection?

Could this be related to not being able to use CamlQuery in Projects CSOM? (I've tried and not been able to)

share|improve this question
add comment

Your Answer

 
discard

By posting your answer, you agree to the privacy policy and terms of service.

Browse other questions tagged or ask your own question.