How can we improve Project?

Improve performance of reading timephased data through CSOM GetTimePhase function

If I want to read timephased assignment data (e.g. actual or scheduled work) for each day of an assignment via CSOM Statusing, it's necessary to do a CSOM call for each day the assignment takes.

Code example:
=====================================================
//1. Creating Project Context, using credentials of a service account
//with Admin rights on PWA
ProjectContext context = new ProjectContext(...);

//2. Getting resource for reading assignments
EnterpriseResource resource = context.EnterpriseResources.Where(...).FirstOrDefault();

//3. Load Resource Assignments
context.Load(resources.Assignments);
context.ExecuteQuery();

//4. Get Time Phase for specific date
var timePhase = resource.Assignments.GetTimePhase(myDate, maDate);
context.Load(timePhase);
context.Load(timePhase.Assignments);
context.ExecuteQuery();
=====================================================

To get the timephased values for each day of the assignment, step 4 has to be done for each day the assignment takes and so a lot of CSOM calls are necessary.

Please provide a way to read all assignment timephased data by day for a resource (or at least for an assignment) with a single CSOM call. With OData this is already possible, but there only published data is available.

55 votes
Sign in
Check!
(thinking…)
Reset
or sign in with
  • facebook
  • google
    Password icon
    Signed in as (Sign out)

    We’ll send you updates on this idea

    Eric Rex shared this idea  ·   ·  Flag idea as inappropriate…  ·  Admin →

    1 comment

    Sign in
    Check!
    (thinking…)
    Reset
    or sign in with
    • facebook
    • google
      Password icon
      Signed in as (Sign out)
      Submitting...

      Feedback and Knowledge Base