web
You’re offline. This is a read only version of the page.
close
Skip to main content
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 (1)
  • Verified answer
    YUN ZHU Profile Picture
    95,305 Super User 2025 Season 2 on at
    How to Upload Documents from Business Central to SharePoint — and then to Azure Portal
    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
    5,048 on at
    How to Upload Documents from Business Central to SharePoint — and then to Azure Portal

    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
    20,230 Super User 2025 Season 2 on at
    How to Upload Documents from Business Central to SharePoint — and then to Azure Portal
  • Suggested answer
    Aman Kakkar Profile Picture
    2,223 on at
    How to Upload Documents from Business Central to SharePoint — and then to Azure Portal

    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
    3,689 on at
    How to Upload Documents from Business Central to SharePoint — and then to Azure Portal
    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
    How to Upload Documents from Business Central to SharePoint — and then to Azure Portal
    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,078 Most Valuable Professional on at
    How to Upload Documents from Business Central to SharePoint — and then to Azure Portal

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

Responsible AI policies

As AI tools become more common, we’re introducing a Responsible AI Use…

Neeraj Kumar – Community Spotlight

We are honored to recognize Neeraj Kumar as our Community Spotlight honoree for…

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

#1
OussamaSabbouh Profile Picture

OussamaSabbouh 3,377

#2
Jainam M. Kothari Profile Picture

Jainam M. Kothari 2,696 Super User 2025 Season 2

#3
YUN ZHU Profile Picture

YUN ZHU 1,512 Super User 2025 Season 2

Last 30 days Overall leaderboard

Featured topics

Product updates

Dynamics 365 release plans