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

Notifications

Announcements

No record found.

Community site session details

Community site session details

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

Automatically Upload File Generate from BC to One Drive

(1) ShareShare
ReportReport
Posted on by 71
Hi Everyone,
 
I'm looking for advice on automatically upload file generated from Business Central online to One Drive. Currently I have Job Queue which will run function and generate a file which will downloaded to my local pc. What I need is after the file generate from that Job Queue, it will automatically push to One Drive.
Any insights you could share would be greatly appreciated.
 
Thank you in advance for your help!
I have the same question (0)
  • Vic Vinegar Profile Picture
    8 on at
    I used this action to save some pdf's to Sharepoint:
    trigger OnAction()
    var
        varDoc: Record "Document Attachment";
    begin
    	varDoc.SetRange("File Name", Rec.FileName);
    	if varDoc.FindSet() then
    	repeat
    		varDoc.OpenInOneDrive("Document Sharing Intent"::Open)
    	until varDoc.Next() = 0;
    end;
     
    This saves the file to onedrive and then opens it. I couldn't actually figure out how to make the code save to a specific sharepoint folder, so used power automate for the rest
  • Suggested answer
    Mustafa Omerbegović Profile Picture
    1,473 Super User 2025 Season 2 on at
    Hello Robby,
     
    for that purpose, you can use the standard connection of the BC and OneDrive.
     
     
    Also, you can use Power Automate for achieving this connection and you can find a lot of material on the web about BC OneDrive connection with Power Automate.
     
    Greetings
     
     
  • Gerardo Rentería García Profile Picture
    25,236 Most Valuable Professional on at
    Hi
    I hope this can help you and give you some hints 
    Best
    GR
  • Suggested answer
    YUN ZHU Profile Picture
    95,729 Super User 2025 Season 2 on at
    Hi, You can try Power Automate. Hope the following can give you some hints.
    How to export data from Business Central to a csv file with Power Automate (No customization) – JSON to csv
    How to import data from a csv file to Business Central with Power Automate (No customization) – csv to JSON
    How to automatically upload files from OneDrive to Business Central with Power Automate (No customization)
     
    Thanks.
    ZHU
  • Robby Profile Picture
    71 on at
    Hi All,
     
    Thanks for your response. As I can see, most of all suggest using Power Automate. May I know is it will need additional cost for Power Automate licenses or it already include on Business Central / Microsoft 365 Subscription?  
  • Suggested answer
    YUN ZHU Profile Picture
    95,729 Super User 2025 Season 2 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

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 2,135

#2
YUN ZHU Profile Picture

YUN ZHU 733 Super User 2025 Season 2

#3
Sumit Singh Profile Picture

Sumit Singh 612

Last 30 days Overall leaderboard

Featured topics

Product updates

Dynamics 365 release plans