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...
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)
  • Suggested answer
    YUN ZHU Profile Picture
    89,902 Super User 2025 Season 2 on at
    Automatically Upload File Generate from BC to One Drive
  • Robby Profile Picture
    71 on at
    Automatically Upload File Generate from BC to One Drive
    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
    89,902 Super User 2025 Season 2 on at
    Automatically Upload File Generate from BC to One Drive
    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
  • Gerardo Rentería García Profile Picture
    22,524 Most Valuable Professional on at
    Automatically Upload File Generate from BC to One Drive
    Hi
    I hope this can help you and give you some hints 
    Best
    GR
  • Suggested answer
    Mustafa Omerbegović Profile Picture
    1,447 Super User 2025 Season 2 on at
    Automatically Upload File Generate from BC to One Drive
    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
     
     
  • Vic Vinegar Profile Picture
    8 on at
    Automatically Upload File Generate from BC to One Drive
    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

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…

Mansi Soni – Community Spotlight

We are honored to recognize Mansi Soni as our August 2025 Community…

Congratulations to the July Top 10 Community Leaders!

These are the community rock stars!

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

#1
Sohail Ahmed Profile Picture

Sohail Ahmed 2,869 Super User 2025 Season 2

#2
Sumit Singh Profile Picture

Sumit Singh 2,484

#3
Jeffrey Bulanadi Profile Picture

Jeffrey Bulanadi 2,242

Last 30 days Overall leaderboard

Featured topics

Product updates

Dynamics 365 release plans