Quantcast
Channel: Project Customization and Programming forum
Viewing all articles
Browse latest Browse all 5347

CSOM Project Summary Task

$
0
0

How do you access the Project Summary Task via the CSOM?  In the PSI it is in the Project dataset under TASK_ID 0.  In OData it is simply integrated in the Project class as ProjectDuration, ProjectActualCost, etc.

In CSOM the PublishedProject doesn't contain these fields and there is no Task in the Tasks collection that has the rollups.

Is PublishedProject.SummaryTaskId somehow involved?  I attempted to load that task via:

var summaryTask = _projContext.LoadQuery(proj.Tasks.Where(a => a.Id == proj.SummaryTaskId)).FirstOrDefault();

But that is throwing a "The data is not available." exception.

Thanks,
Mike



Viewing all articles
Browse latest Browse all 5347

Trending Articles



<script src="https://jsc.adskeeper.com/r/s/rssing.com.1596347.js" async> </script>