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

Import/Export Blob-Files in BC without Azure Blob Storage?

(0) ShareShare
ReportReport
Posted on by 144

Hi,

we have our own BC-table that contains a blob field. Here we want to regularly create new records by importing CSV files without user-interaction and also export the blob fields (CSV files) to a file server directory for selected records.

My question: Is it possible to fill the BC table via "Power Automate" and also export selected files to a file server directory via another "Power Automate" job? Or is this only possible via "Azure Blob Storage"-functions?

regards
Ralf

  • Suggested answer
    YUN ZHU Profile Picture
    YUN ZHU 77,970 Super User 2025 Season 1 on at
    RE: Import/Export Blob-Files in BC without Azure Blob Storage?

    Hi, hope the following helps.

    https://www.linkedin.com/pulse/business-central-azure-blob-storage-bert-verbeek/

    Thanks.

    ZHU

  • Suggested answer
    Nitin Verma Profile Picture
    Nitin Verma 21,284 Moderator on at
    RE: Import/Export Blob-Files in BC without Azure Blob Storage?

    Unfortunately I dont have that code available with me apart from the Azure blob storage.

  • Suggested answer
    Inge M. Bruvik Profile Picture
    Inge M. Bruvik 997 Moderator on at
    RE: Import/Export Blob-Files in BC without Azure Blob Storage?

    I do not have any code samples for Azure fileshares.

    But I see that Stefano have have created some samples around this where he is using a Azure function to communicate from Business Central to the Azure file share.

    Maybe that can be helpful for you?

    demiliani.com/.../

  • neckit Profile Picture
    neckit 144 on at
    RE: Import/Export Blob-Files in BC without Azure Blob Storage?

    First of all, thank you for the helpful feedback!

    You primarily use the Azure Blob starage. But we would like to use the Azure File Shares, because we can also use the synchronization with a local file server directory.

    We're not quite ready to set this up in Azure yet, but do you also have some examples of how to use Azure file shares via AL code? That would be awesome :-)

    greeting

    Ralf

  • Suggested answer
    Nitin Verma Profile Picture
    Nitin Verma 21,284 Moderator on at
    RE: Import/Export Blob-Files in BC without Azure Blob Storage?

    You can check this link for blob storage, hope it will help you.

    www.navwithnav.com/.../

  • Suggested answer
    Inge M. Bruvik Profile Picture
    Inge M. Bruvik 997 Moderator on at
    RE: Import/Export Blob-Files in BC without Azure Blob Storage?

    The issue with using OneDrive in many of these scenarios is that a OneDrive is owned by a specific user, so if that user is leaving the company the OneDrive integration will stop working when the user account is deactivated.

    That is why i recommend Azure Blob storage over OneDrive when possible.

  • Suggested answer
    YUN ZHU Profile Picture
    YUN ZHU 77,970 Super User 2025 Season 1 on at
    RE: Import/Export Blob-Files in BC without Azure Blob Storage?

    Hi, here's a simple example of updating from OneDrive using standard power automate actions.

    https://yzhums.com/33436/

    I think you can add new custom execute actions to do it.

    https://yzhums.com/20111/

    Another solution, you can consider using Graph API.

    https://www.msnjournals.com/post/how-to-use-microsoft-graph-api-in-business-central

    Hope this helps.

    Thanks.

    ZHU

  • Suggested answer
    Inge M. Bruvik Profile Picture
    Inge M. Bruvik 997 Moderator on at
    RE: Import/Export Blob-Files in BC without Azure Blob Storage?

    I have some very simple code for this in a public Github repository.

    github.com/.../GenJorunalImport

    This checks for new files in a Azure blob storage and creates journal lines from the CSV files.

    I can extend it with further functions if you  reach out.,

  • neckit Profile Picture
    neckit 144 on at
    RE: Import/Export Blob-Files in BC without Azure Blob Storage?

    Inge is probably right and Azure is the best choice and then for my purposes "Azure File" (with synchronized Azure File Share).

    However, I can't find any detailed documentation about what options I have from AL. For example, how can I perform typical file operations here:
    - Process files from a folder
    - Delete or move file
    - Read file
    - Write file
    And what other options do I have?

    It puts me off that I haven't found any extensive documentation on this yet. Do you have a tip for me?

    greeting
    Ralf

  • Suggested answer
    Inge M. Bruvik Profile Picture
    Inge M. Bruvik 997 Moderator on at
    RE: Import/Export Blob-Files in BC without Azure Blob Storage?

    Technically possible yes. But if you are using Business Central online you will need a lot of extra software components to do it.

    So you makes life a lot easier for yourself if you put the files on Azure blob storage or on OneDrive.

    For processes you want to run without user interaction Azure blob storage is preferred because it is not owned by a single user like OneDrive is.

    And it is very little code needed in BC to do this using Azure blob storage,

    Why do you want to avoid using Azure blob storage? I know it has a cost, but it is relatively cheap for the storage needed for these kind of processes.

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

Announcing Our 2025 Season 1 Super Users!

A new season of Super Users has arrived, and we are so grateful for the daily…

Vahid Ghafarpour – Community Spotlight

We are excited to recognize Vahid Ghafarpour as our February 2025 Community…

Tip: Become a User Group leader!

Join the ranks of valued community UG leaders

Leaderboard

#1
André Arnaud de Calavon Profile Picture

André Arnaud de Cal... 292,516 Super User 2025 Season 1

#2
Martin Dráb Profile Picture

Martin Dráb 231,321 Most Valuable Professional

#3
nmaenpaa Profile Picture

nmaenpaa 101,156

Leaderboard

Featured topics

Product updates

Dynamics 365 release plans