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

How to get the filename of the file that we are importing through an import function into a blob field

(0) ShareShare
ReportReport
Posted on by

I am trying to import a csv file into my blob field and i have a field named as file name is there any way get the file name of the file that we are importing , 

  • Suggested answer
    YUN ZHU Profile Picture
    104,183 Super User 2026 Season 2 on at

    Hi, You can try the following methods. If you are importing an Excel file, you can also get the Sheet Name.

    FileMgt: Codeunit "File Management";
    FileName := FileMgt.GetFileName(FromFile);


    TempExcelBuffer: Record "Excel Buffer" temporary;
    SheetName := TempExcelBuffer.SelectSheetsNameStream(IStream);

    Hope this helps.
    Thanks.
    ZHU

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 Winners!

Congratulations to our community stars!

Women in Power Builds Momentum

Expanding mentorship, skilling, and AI innovation

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

#1
OussamaSabbouh Profile Picture

OussamaSabbouh 545 Super User 2026 Season 2

#2
YUN ZHU Profile Picture

YUN ZHU 354 Super User 2026 Season 2

#3
Grigorios Mavrogeorgis Profile Picture

Grigorios Mavrogeorgis 228 Super User 2026 Season 2

Last 30 days Overall leaderboard

Featured topics

Microsoft Training Manuals

Product updates

Dynamics 365 release plans