web
You’re offline. This is a read only version of the page.
close
Skip to main content

Announcements

No record found.

News and Announcements icon
Community site session details

Community site session details

Session Id :
Small and medium business | Business Central, N...
Answered

How to Upload Documents from Business Central to SharePoint — and then to Azure Portal

(6) ShareShare
ReportReport
Posted on by 37

Hey everyone 👋

I’m currently working on a document integration process in Dynamics 365 Business Central, and I’d love some guidance or best practices from the community.

Scenario:

  1. I need to upload documents (like invoices, receipts, item images, etc.) from Business Central to SharePoint directly through AL code or available connectors.

  2. Once the documents are in SharePoint, I want to upload or sync those files automatically to Azure (Blob Storage / Azure Portal) for long-term storage or external access.

  • What’s the recommended way to integrate SharePoint document upload in Business Central? (REST API, Power Automate, or AL code using HttpClient?)

  • How can I automate the next step — moving or syncing uploaded SharePoint files to Azure Blob Storage?

  • Are there any ready-to-use examples or standard BC extensions for this integration

If anyone has implemented a SharePoint → Azure document pipeline from Business Central, please share your approach or sample code. 

Thanks in advance!

#BusinessCentral #SharePoint #Azure #Dynamics365 #ALDevelopment

I have the same question (2)
  • Verified answer
    YUN ZHU Profile Picture
    99,055 Super User 2026 Season 1 on at
    I will answer the first half of the question. I have tested the integration of Sharepoint before. Hope the following helps. I personally recommend using the Graph API integration, which is more efficient than Power Automate and doesn't require a Power Automate license.
    Dynamics 365 Business Central Blog Series: Integrate Business Central with SharePoint
     
    Thanks.
    ZHU
  • Suggested answer
    OussamaSabbouh Profile Picture
    12,766 Super User 2026 Season 1 on at

    Hello,

    To get files from Business Central to SharePoint, use the Microsoft Graph API. You first need to register the app in Azure for permissions, then use AL code with HttpClient to perform the upload.

    Once the files are in SharePoint, you can automatically sync them to Azure Blob Storage using a Power Automate flow. Just set up a flow that triggers "When a file is created" in SharePoint, followed by the "Create blob" action in Azure.

    Regards,
    Oussama
  • Suggested answer
    Khushbu Rajvi. Profile Picture
    22,128 Super User 2026 Season 1 on at
  • Suggested answer
    Aman Kakkar Profile Picture
    2,977 Super User 2026 Season 1 on at

    Hi,

    If there is no modification in the files/documents, you can create direct connections from Business Central to both SharePoint and Azure Blob Storage without needing to pass files through multiple hops.

    Following a path like BC → SharePoint → Azure Blob adds unnecessary complexity and maintenance overhead. Instead, I’d recommend building two direct integrations:

    • BC → SharePoint
    • BC → Azure Blob Storage

     

    For reference purpose - How to manage external files in Business Central more easily through a unified API

    Hope this helps,
    Aman K

  • Suggested answer
    Pallavi Phade Profile Picture
    5,420 Super User 2026 Season 1 on at
    Namaste @CU10010923-0
     
    There are two options 
     
    1) Power Automate flow - Low code  , sharepoint , Azure Blob integration is out-of -box . Easy to manage .
    2) MS Graph API - if more concrete then you can use below links and customize 
     
     
    Regards
    Pallavi Phade
  • Suggested answer
    CU10010923-0 Profile Picture
    37 on at
    Received the following error while trying to upload files to SharePoint:
    Failed to upload files to SharePoint: 401 {"error":{"code":"generalException","message":"General exception while processing","innerError":{"date":"2025-11-11T08:02:20","request-id":"903f602b-5aba-43cb-9ce6-31791e1068ec","client-request-id":"903f602b-5aba-43cb-9ce6-31791e1068ec"}}}
     
     
     
     
  • Gerardo RenterĆ­a GarcĆ­a Profile Picture
    25,555 Most Valuable Professional on at

Under review

Thank you for your reply! To ensure a great experience for everyone, your content is awaiting approval by our Community Managers. Please check back later.

Helpful resources

Quick Links

Introducing the 2026 Season 1 community Super Users

Congratulations to our 2026 Super Stars!

Congratulations to our 2025 Community Spotlights

Thanks to all of our 2025 Community Spotlight stars!

Leaderboard > Small and medium business | Business Central, NAV, RMS

#1
OussamaSabbouh Profile Picture

OussamaSabbouh 1,926 Super User 2026 Season 1

#2
YUN ZHU Profile Picture

YUN ZHU 1,158 Super User 2026 Season 1

#3
Khushbu Rajvi. Profile Picture

Khushbu Rajvi. 533 Super User 2026 Season 1

Last 30 days Overall leaderboard

Featured topics

Product updates

Dynamics 365 release plans