Skip to main content

Notifications

Announcements

No record found.

Microsoft Dynamics NAV (Archived)

How to import the excel file using cal code

(0) ShareShare
ReportReport
Posted on by Microsoft Employee

Hi Experts,

please tell me how to import the excel file using cal code in nav 2016.

Thank you

*This post is locked for comments

  • Suggested answer
    4BzSoftware Profile Picture
    4BzSoftware 6,071 on at
    RE: How to import the excel file using cal code

    Hi Ashwini,

    - I think file name should be 'C:\...\...xlsx':

    ServerFileName := FileManagement.UploadFile(Text001,'ExcelTxt');  //  ExcelTxt is excle file name

    - To insert to main table, loop excel buffer and write insert code to main table.

  • Community Member Profile Picture
    Community Member Microsoft Employee on at
    RE: How to import the excel file using cal code

    Hi  Experts,

    i can insert the data in excel buffer using import but its not inserting my main table. please give any solution.

    thank you

  • Community Member Profile Picture
    Community Member Microsoft Employee on at
    RE: How to import the excel file using cal code

    Hi Sir,

    where i need to enter the excel file name

    IF CloseAction = ACTION::OK THEN BEGIN
    ServerFileName := FileManagement.UploadFile(Text001,'ExcelTxt');  //  ExcelTxt is excle file name
    IF ServerFileName = '' THEN
    EXIT(FALSE);
    SheetNAme := ExcelBuffer.SelectSheetsName(ServerFileName);
    IF SheetNAme = '' THEN
    EXIT(FALSE);
    END;

    eventhough im getting error please enter the filename.

    please give any solution.

    thank you

  • Suggested answer
    4BzSoftware Profile Picture
    4BzSoftware 6,071 on at
    RE: How to import the excel file using cal code

    Hi Ashwini.123,

    Take a look at table 370 Excel Buffer.

    A nice thread from Chris D'Silva https://www.cloudfronts.com/importing-excel-file-microsoft-dynamics-nav-using-excel-buffer/

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

Congratulations 2024 Spotlight Honorees

Kudos to all of our 2024 community stars! 🎉

Meet the Top 10 leaders for December

Congratulations to our December super stars! 🥳

Start Your Super User Journey

Join the ranks of our community heros! 🦹

Leaderboard

#1
André Arnaud de Calavon Profile Picture

André Arnaud de Cal... 291,711 Super User 2024 Season 2

#2
Martin Dráb Profile Picture

Martin Dráb 230,458 Most Valuable Professional

#3
nmaenpaa Profile Picture

nmaenpaa 101,156

Leaderboard

Featured topics

Product updates

Dynamics 365 release plans