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

Announcements

No record found.

News and Announcements icon
Community site session details

Community site session details

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

Read data from the Azure Blob Storage in a folder structure

(0) ShareShare
ReportReport
Posted on by 1,455

Hi Experts,

I am having a issue while reading the file from Azure Blob Storage. It works fine if we provide only container name as parameter. But we have folder structure.

For Ex., if container is "TestContainer" and inside this we have a folder named "TestFolder". We are storing the files under "TestFolder"

The uplaod is working fine but when we want to read, we are getting error.

Code Snippet:

Working when we specify only container name, but gives every folder data. But we want to read only specific.

BlobClient.Initialize(storageAccount, 'TestContainer', Authorization);

response := BlobClient.ListBlobs(content);

Not working when we specify only container name along with folder name:

BlobClient.Initialize(storageAccount, 'TestContainer/TestFolder', Authorization);

response := BlobClient.ListBlobs(content);

Response below:

Response Code: 400 The requested URI does not represent any resource on the server.

Any suggestions are highly appreciated.

Thanks in advance.

Regards

Avinash B

I have the same question (0)
  • Suggested answer
    IB-29041624-0 Profile Picture
    1,191 Moderator on at

    You have to use the optional parameters for that.

    Here is an example

    procedure GetBlobsFromIncomingContainer(var ABSContainerContent: Record "ABS Container Content"; FolderPath: Text)

       begin

           InitializeIncomingContainer();

           ABSOptionalParameters.Prefix(FolderPath);

           ABSOperationResponse := ABSBlobClient.ListBlobs(ABSContainerContent, ABSOptionalParameters);

           CheckError(ABSOperationResponse);

       end;

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

Introducing the 2026 Season 1 community Super Users

Congratulations to our 2026 Super Stars!

Meet the Microsoft Dynamics 365 Contact Center Champions

We are thrilled to have these Champions in our Community!

Congratulations to the April Top 10 Community Leaders

These are the community rock stars!

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

#1
OussamaSabbouh Profile Picture

OussamaSabbouh 2,260 Super User 2026 Season 1

#2
YUN ZHU Profile Picture

YUN ZHU 1,515 Super User 2026 Season 1

#3
AndrewThomas81 Profile Picture

AndrewThomas81 1,373

Last 30 days Overall leaderboard

Featured topics

Microsoft Training Manuals

Product updates

Dynamics 365 release plans