Track Aggregated Budget Performance
This tutorial demonstrates how to use the Cost Management API to track the performance of a project budget based on its budget code. The performance tracking item that represents a budget is tracked by one or more timesheets, each of which is linked to one of the tracking item’s instances. The tutorial aggregates the tracking data from all of the timesheets associated with a given budget. The steps include retrieving the budget code, logging and aggregating timesheets, synchronizing the timesheets with Autodesk Cost Management, and adjusting the forecast.
Budget codes are synchronized from Autodesk Cost Management or other external systems e.g. ERP/accounting system (assume they’re always synchronized).
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 the Budget Code
To retrieve the budget code of the budget you want to track, use the value of containerId to call GET budgets with the appropriate filter criteria.
Request
Response
Note the budget code (results.budgetCode) — 84720010121001FEE.
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 budget code noted in the previous step.
The tracking app aggregates the inputQuantity and outputQuantity values entered by the user into timesheets by day and budget code. Assume the unit of measurement of inputQuantity to be hr (hour).
Step 3: Synchronize Timesheets with Autodesk Cost Management
To capture the aggregated timesheet data from your tracking app, use the budget code noted in step 1 (84720010121001FEE) to call POST time-sheets to create a timesheet object for the specified budget.
Request
Response
The new timesheet object is associated with the first (default) tracking item instance of the budget’s performance tracking item.
Step 4: Adjust the Forecast
The cost engineer analyzes the performance by tracking item instance and creates a forecast adjustment.
Imported from the Autodesk Platform Services documentation: https://aps.autodesk.com/en/docs/acc/v1/tutorials/cost/cost-track-aggregated-budget-performance.