Skip to content

Raj-Agill21/fetch-files-data-powerbi

Folders and files

NameName
Last commit message
Last commit date

Latest commit

Β 

History

16 Commits
Β 
Β 
Β 
Β 
Β 
Β 

Repository files navigation

Autodesk API to Power BI Integration using Python & Microsoft Fabric

Screenshot 2025-08-01 103700

A complete workflow to fetch data from Autodesk Construction Cloud (ACC) using Autodesk Platform Services (APS), load it into Microsoft Fabric Lakehouse, and build Power BI dashboards.

πŸ“ Folder Structure

your-project-folder/
β”œβ”€β”€ auth.py              # Handles OAuth authentication
β”œβ”€β”€ token_store.json     # Token file generated after login

βœ… Features

  • OAuth2 flow with Autodesk API
  • ACC review data extraction
  • Upload tokens to Fabric Lakehouse
  • Scheduled daily refresh via Data Pipeline
  • Power BI report based on live Autodesk data

πŸ› οΈ Prerequisites

  • Python 3.8+
  • Microsoft Fabric Workspace
  • Autodesk Developer App
  • Power BI Access

Install dependencies:

pip install requests flask pandas

πŸ” 1. Set Up Autodesk API App

  • Go to: https://aps.autodesk.com/
  • Create an app and note:
    • client_id
    • client_secret
  • Set Redirect URI: http://localhost:3000/callback
  • Required Scopes:
    data:read, data:write, bucket:read, viewables:read

πŸ”Œ2. Custom Integration in ACC

  1. Go to ACC β†’ ACC Admin β†’ Custom Integrations
  2. Register your APS App using the client_id

πŸ”‘ 3. Authentication Script

Create auth.py and insert the code in auth.py file in the repo:

# auth.py
# [Insert full authentication code here]

Run it:

python auth.py
  • Browser opens β†’ Login β†’ Token saved in token_store.json

πŸ“€ 4. Upload Token to Fabric

  • Go to Fabric Workspace β†’ Lakehouse
  • Create folder: Files/auth/
  • Upload token_store.json there

πŸ““ 5. Create Fabric Notebook

  • In Fabric, create a Notebook
  • Paste the Python code to:
    • Refresh token
    • Run
    • It Save as acc_reviews_daily table

⏱ 6. Automate with Data Pipeline

  • Go to workspace β†’ + New > Data Pipeline
  • Drag your notebook
  • Add Trigger β†’ Schedule β†’ Daily
  • Save & Publish

πŸ“ˆ 7. Build Power BI Report

  • Go to workspace β†’ + New > Power BI Report
  • Choose Lakehouse as source
  • Select acc_reviews_daily table
  • Build and save your dashboard

πŸ“š Resources

πŸ‘¨β€πŸ’» Author

  • Name: Raj Agill P K

About

Using Python to Fetch Data from Autodesk API and Load into Power BI

Resources

Stars

Watchers

Forks

Releases

No releases published

Packages

No packages published

Languages