Track Budget Performance with Breakdowns
This tutorial demonstrates how to use the Cost Management API to track the performance of a project budget with breakdowns using timesheets. A performance tracking item (which represents a budget) is tracked by one or more timesheets, each associated with one of the tracking item’s instances. The tutorial breaks out the tracking data to track each of the timesheets associated with a given budget. The steps include retrieving a tracking item instance, logging and aggregating the instance’s timesheets, synchronizing the timesheets with Autodesk Cost Management, and adjusting the forecast.
Note that the Cost API timesheets endpoints used in this tutorial are designed only for use with a third party timesheet reporting (tracking) app (e.g. Riskcast, Rhumbix, QuickBooks Time, or ClickUp) that you’ve integrated with Cost Management.
Before You Begin
- Register an app.
- Acquire a 3-legged OAuth token with
data:create,data:read, anddata:writescopes. - Verify that you have access to the relevant BIM 360 account and project.
- Retrieve the project ID for your project. To obtain a project ID, use GET projects.
Step 1: Retrieve a Tracking Item Instance from Autodesk Cost Management
To obtain the ID of the tracking item instance you want to retrieve, use the project’s cost container ID (e94b9bc8-1775-4d76-9b1d-c613e120ccff in this example) to call GET performance-tracking-item-instances.
Request
Response
Note the tracking item instance ID (results.id) — 1df59db0-9484-11e8-a7ec-7ddae203e404, the budget code (results.budgetCode) — 84720010121001FEE, and the item instance sequence number (results.number) — 84720010121001FEE-0001 in the response.
Step 2: Log and Aggregate the Timesheets
A field user uses your integrated tracking app to log their progress in the app’s timesheets against the tracking item instance ID noted in the previous step.
The tracking app aggregates the inputQuantity and outputQuantity values entered by the user into timesheets by day and tracking instance, distinguished, for example, by location. Assume the unit of measurement of inputQuantity to be hr (hour).
Step 3: Synchronize Timesheets with Autodesk Cost Management
To capture the timesheet data from your tracking app, use the tracking item instance ID noted in step 1 (1df59db0-9484-11e8-a7ec-7ddae203e404) to call POST time-sheets to create a timesheet object for the specified tracking item instance.
You can apply a time range (startDate and endDate) if the timesheet data covers multiple days, and the required endDate will be used to calculate the tracking item instance performance. Also required are inputQuantity and outputQuantity.
Request
Response
Step 4: Adjust the Forecast
The cost engineer analyzes the performance by tracking item instance, then creates a forecast adjustment.
Imported from the Autodesk Platform Services documentation: https://aps.autodesk.com/en/docs/acc/v1/tutorials/cost/cost-track-performance-with-breakdowns.