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 save the file exported from Navision 2016 to web client's directory

(0) ShareShare
ReportReport
Posted on by 114

I have exported data from VendorLedgerEntry using XMLPort. File location has been pointed to the local directory of the server where windows client is accessed.

When the web client user runs the objext, the fiel didnt get saved anywhere.

Can anyone suggest how to save the file in web client user's directory ?

  • Suggested answer
    srttel Profile Picture
    Microsoft Employee on at

    You can create a codeunit which calls the xmlport.

    This codeunit offers the user to download the file and to save it in a place where he wants.

    OnRun()

    CustXmlFile.CREATE(TEMPORARYPATH + 'Customer.xml');  

    CustXmlFile.CREATEOUTSTREAM(XmlStream);  

    IsExported := XMLPORT.EXPORT(XMLPORT::"Export Contact", XmlStream);  

    FromFile := CustXmlFile.NAME;  

    ToFile := 'CustomerClient.xml';  

    CustXmlFile.CLOSE;  

    IF IsExported THEN  

    BEGIN  

     DOWNLOAD(FromFile,'Download file','C:\Temp','Xml file(*.xml)|*.xml',ToFile);  

     ERASE(FromFile);  

     MESSAGE('Some message');  

    END  

    ELSE  

     MESSAGE('Some message');  

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

Congratulations to the July Top 10 Community Leaders

These are the community rock stars!

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

#1
OussamaSabbouh Profile Picture

OussamaSabbouh 748 Super User 2026 Season 2

#2
YUN ZHU Profile Picture

YUN ZHU 354 Super User 2026 Season 2

#3
AndrewThomas81 Profile Picture

AndrewThomas81 351 Super User 2026 Season 2

Last 30 days Overall leaderboard

Featured topics

Microsoft Training Manuals

Product updates

Dynamics 365 release plans