Forum Discussion

AbleMPeter's avatar
AbleMPeter
Copper Contributor
Feb 21, 2024
Solved

Project Online to retrieve baseline dates for tasks within projects.

Our team is currently working on a project that involves integrating with Project Online to retrieve baseline dates for tasks within projects. We are reaching out to inquire about accessing baseline ...
  • Paul_Mather's avatar
    Paul_Mather
    Feb 27, 2024

    Hello AbleMPeter ,

    If you want to navigate to a related data endpoint, you have to provide all keys - for example:

     

    {pwaUrl}/_api/ProjectData/TaskBaselines(BaselineNumber=0,ProjectId=guid'9c5ee037-4c4e-ee11-b221-00155dd8b40c',TaskId=guid'a85ee037-4c4e-ee11-b221-00155dd8b40c')/Task

     

    That would return the Task details for that 1 task though, not the task baseline details.

    You can either get all task baseline details by going to:

     

    {pwaUrl}/_api/ProjectData/TaskBaselines

     

    Or grab a specific task's baseline details by going to - update the GUIDs:

     

    {pwaUrl}/_api/ProjectData/TaskBaselines(BaselineNumber=0,ProjectId=guid'9c5ee037-4c4e-ee11-b221-00155dd8b40c',TaskId=guid'a85ee037-4c4e-ee11-b221-00155dd8b40c')

     

    Paul

Resources