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

Notifications

Announcements

No record found.

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 439

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,698 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
    95,331 Super User 2025 Season 2 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
    439 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

Responsible AI policies

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

Neeraj Kumar – Community Spotlight

We are honored to recognize Neeraj Kumar as our Community Spotlight honoree for…

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

#1
OussamaSabbouh Profile Picture

OussamaSabbouh 3,143

#2
Jainam M. Kothari Profile Picture

Jainam M. Kothari 1,694 Super User 2025 Season 2

#3
YUN ZHU Profile Picture

YUN ZHU 1,067 Super User 2025 Season 2

Last 30 days Overall leaderboard

Featured topics

Product updates

Dynamics 365 release plans