web
You’re offline. This is a read only version of the page.
close
Skip to main content
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 , 

I have the same question (0)
  • Suggested answer
    YUN ZHU Profile Picture
    94,349 Super User 2025 Season 2 on at
    RE: How to get the filename of the file that we are importing through an import function into a blob field

    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

Responsible AI policies

As AI tools become more common, we’re introducing a Responsible AI Use…

Pallavi Phade – Community Spotlight

We are honored to recognize Pallavi Phade as our Community Spotlight honoree for…

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

#1
OussamaSabbouh Profile Picture

OussamaSabbouh 2,791

#2
YUN ZHU Profile Picture

YUN ZHU 2,091 Super User 2025 Season 2

#3
Sumit Singh Profile Picture

Sumit Singh 2,090

Last 30 days Overall leaderboard

Featured topics

Product updates

Dynamics 365 release plans