Skip to main content

Notifications

Announcements

No record found.

Community site session details

Community site session details

Session Id :
Microsoft Dynamics 365 | Integration, Dataverse...
Unanswered

Unable to List More Than 5000 Files in Azure Blob Storage for Integration with Business Central

(1) ShareShare
ReportReport
Posted on by 2

Hello everyone,

I am working on integrating Azure Blob Storage with Microsoft Dynamics 365 Business Central to import file links from a folder within a container into a Business Central table.

Here’s my scenario:

  • I have uploaded more than 243,000 files into a specific folder inside a container in Azure Blob Storage.
  • I want to list all the files in the folder and import their links into a Business Central table.
  • However, I can only list and process the first 5,000 files. It seems the ListBlobs operation is limited to this count.
now my Question is 
  • How can I retrieve all the files in the folder beyond the 5,000-file limit using AL code in Business Central?
  • Is there a way to handle continuation tokens or implement pagination in AL to overcome this limitation?
  • Are there any best practices for efficiently managing and retrieving a large number of files from Azure Blob Storage in this context?
I am using an Azure Blob Storage integration with AL code that looks like this (simplified for clarity):
ABSBlob.Initialize(StorageAccount, ContainerName, Authorization);
ABSBlob.ListBlobs(ABSContContainer, ABSOptionalParameter);
 

This works fine for folders with fewer than 5,000 files, but it doesn’t seem to handle larger datasets.

Any guidance or example code for handling large file sets or continuation tokens would be greatly appreciated.

Thank you!

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,494 Super User 2025 Season 1

#2
Martin Dráb Profile Picture

Martin Dráb 231,307 Most Valuable Professional

#3
nmaenpaa Profile Picture

nmaenpaa 101,156

Leaderboard

Product updates

Dynamics 365 release plans