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

Announcements

News and Announcements icon
Community site session details

Community site session details

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

create ZIP archive and insert file from server temp folder to ZIP archive and save it in server temp folder

(0) ShareShare
ReportReport
Posted on by 449

Hi All,

I need a solution to create ZIP file, but I am stucked a little. I can create a ZIP archive, but I do not want to download it to local client, instead I need to save ZIP file on servers' temp folder.

I have created a function to save a PDF file on server temp folder, rename the file and upload the file to the FTP. Everything work as expected. Now, I jave to create a ZIP file, insert PDF file to that ZIP file and save the ZIP file on servers' temp folder, by not downloading ZIP file to local client.

Any suggestions? I can also use .net for this purpose, since client has BC deployed on-prem (v19).

Thanks Damjan

I have the same question (0)
  • Suggested answer
    Nitin Verma Profile Picture
    21,812 Moderator on at

    Hi,

    You can try to save the file directly with Azure function using Blob storage.

    www.navwithnav.com/.../

  • Suggested answer
    YUN ZHU Profile Picture
    102,361 Super User 2026 Season 1 on at

    Hi, If it is the v19 on-pre version, the previous ways in nav should work. I hope the following information can give you some hints.

    https://forum.mibuso.com/discussion/69651/nav2016-nas-copy-read-file-from-network-drive

    https://forum.mibuso.com/discussion/72477/saveaspdf-on-network-drive

    Hope this helps.

    Thanks.

    ZHU

  • Suggested answer
    Damjan Zakojc Profile Picture
    449 on at
    I have developed custom solution using codunit FileManagment and WinSCP application where procedure first prints a report into the PDF file and add it into the tempblob, creates a ZIP archive, adds PDF file from tempblob into the created ZIP archive, then a TXT file is created and each PDF file is inserted as new line in that TXT file, then the procedure closes TXT file and also the ZIP archive; saves ZIP archive in the TEMP folder of the BCST server and uploads ZIP file from temp folder and TXT file to the folder on SFTP server.

    Thanks

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 June Top 10 Community Leaders

These are the community rock stars!

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

#1
OussamaSabbouh Profile Picture

OussamaSabbouh 621 Super User 2026 Season 1

#2
Gerardo Rentería García Profile Picture

Gerardo Rentería Ga... 445 Most Valuable Professional

#3
YUN ZHU Profile Picture

YUN ZHU 366 Super User 2026 Season 1

Last 30 days Overall leaderboard

Featured topics

Microsoft Training Manuals

Product updates

Dynamics 365 release plans