Dynamics 365 Business Central Blog Series: Integrate Business Central with OneDrive
A blog series covering multiple approaches to integrate Business Central with OneDrive, including file import and export via AL and Graph API, report saving, Power Automate workflows for automated syncing, and native features like Edit in OneDrive and file sharing. The series explains both custom development methods and no-code automation options for handling files and data between Business Central and OneDrive.

post Dynamics 365 Lab
"How to import/read files from OneDrive to Business Central via AL (Graph API)"
Key points
- File operations between Business Central and OneDrive can be performed using AL code with Graph API, including import, upload, and report saving
- Power Automate offers no-code solutions to synchronize files and data between OneDrive and Business Central
- Native OneDrive features in Business Central include Edit in OneDrive, Share action, and cloud file configuration
- Custom actions can be implemented to extend OneDrive integration capabilities within Business Central
- Data exchange between systems supports multiple formats including CSV, JSON, and file attachments
Quotes
- “How to import/read files from OneDrive to Business Central via AL (Graph API)” (Demonstrates the core use case of programmatically accessing OneDrive files within Business Central using AL code)
- “How to automatically upload files from OneDrive to Business Central with Power Automate (No customization)” (Shows no-code automation approach that doesn’t require AL development, making OneDrive sync accessible to users without coding skills)
- “Configure OneDrive integration (New assisted setup: Connect your files to the cloud)” (Indicates native setup tools in Business Central to simplify OneDrive configuration without manual coding)
AL objects mentioned
As named in the post. A name that matches one object page by exact type and name links to it; the others stay as named.
- codeunit “501”
Not found in BC28-30: codeunit “501”.
Context
- Features: OneDrive integration, Graph API file operations, Edit in OneDrive, Share files through OneDrive, Power Automate workflows, CSV/JSON data conversion, Report export to OneDrive, Cloud Storage configuration
- Versions: BC20, BC21, BC22, 2021 Wave 2, 2022 Wave 1, 2022 Wave 2, 2023 Wave 1
Source: Dynamics 365 Lab - Yun Zhu, community blog. Summary, key points and quotes are derived (CONTENT-NOTICE.md); read the original for the full text.