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

Announcements

News and Announcements icon
Community site session details

Community site session details

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

Handling CSV File Generation via Job Queue in Cloud (Target = Cloud)

(1) ShareShare
ReportReport
Posted on by 244
Hi Experts,

I currently have an On-Premise customization (Target = 'OnPrem') where a CSV file is generated via a Job Queue and saved to a shared network folder.

As we are migrating to the Cloud version (Target = 'Cloud'), I would like to understand how to handle this functionality in the new environment.

I have the following questions:
 
  1. Is it possible to save a generated CSV file (created through a Job Queue) directly to a local or shared network folder in the Cloud version?
  2. If yes, what is the recommended approach to achieve this?
  3. If not, what are the alternative methods to handle file generation and storage when using Job Queue in the Cloud environment?
 
Any guidance or best practices would be greatly appreciated.

Thanks in advance!
I have the same question (0)
  • Suggested answer
    OussamaSabbouh Profile Picture
    17,799 Super User 2026 Season 1 on at
    Hello,
    No, in Business Central Cloud/SaaS you cannot generate a CSV from a Job Queue and save it directly to a local PC path or shared network folder like \\server\folder\file.csv; that pattern is on-prem only because SaaS has no access to your file system/network share, and Job Queue runs as a background session, so it also should not use client file download/upload dialogs. The usual cloud approach is to generate the CSV in-memory using streams/Temp Blob, then send it somewhere external: Azure Blob Storage / Azure File Share using REST/API, SharePoint/OneDrive via Microsoft Graph or Power Automate, email attachment, SFTP through Azure Function, or call an external API that stores the file. If users need to manually download it, expose an action/page where the user downloads the generated file using DownloadFromStream, but don’t use that from the scheduled Job Queue. My recommendation: for automated exports, use Job Queue → create CSV stream → upload to Azure Blob/Azure File Share or call Power Automate/Azure Function.
    Regards,
    Oussama Sabbouh
  • Suggested answer
    OussamaSabbouh Profile Picture
    17,799 Super User 2026 Season 1 on at
    Hello,
    No, in Business Central SaaS / Target = Cloud you should not save a CSV directly to a local path or shared network folder like you did on-prem; the cloud service runs on Microsoft-managed servers, not on your file server, and Job Queue runs in a background session where client file download/upload methods should also be avoided. The recommended approach is to generate the CSV in a stream/Temp Blob, then send it to a cloud-accessible destination such as Azure Blob Storage / Azure File Services, SharePoint/OneDrive via Power Automate, email attachment, SFTP/API through an external service, or an Azure Function if extra file-routing logic is needed. So the replacement design is: Job Queue generates CSV → stores/sends it through a cloud service/API → users or downstream systems pick it up from there, instead of writing to C:\ or a network share.
    Regards,
    Oussama Sabbouh

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

Season of Sharing Community Challenge Launch!

Jump in, show your community spirit, and win prizes!

Women in Power Builds Momentum

Expanding mentorship, skilling, and AI innovation

Congratulations to the May Top 10 Community Leaders

These are the community rock stars!

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

#1
OussamaSabbouh Profile Picture

OussamaSabbouh 1,687 Super User 2026 Season 1

#2
YUN ZHU Profile Picture

YUN ZHU 1,041 Super User 2026 Season 1

#3
Grigorios Mavrogeorgis Profile Picture

Grigorios Mavrogeorgis 974 Super User 2026 Season 1

Last 30 days Overall leaderboard

Featured topics

Microsoft Training Manuals

Product updates

Dynamics 365 release plans