Customizing Dynamics NAV
Discover different ways to customize the application to give you and your colleagues access to the features, functionality, and data that you need most.
Dynamics 365 2019 release wave 2 plan Discover the latest updates to Dynamics 365.Release Plan | Weekly Deployment Notes
Ace your Dynamics 365 deployment with packaged services delivered by expert consultants.Explore service offerings
Connect with the ISV success team on the latest roadmap, developer tool for AppSource certification, and ISV community engagements.
ISV self-service portal
The FastTrack program is designed to help you accelerate your Dynamics 365 deployment with confidence.
FastTrack Program | Finance and Operations TechTalks | Customer Engagement TechTalks | Talent TechTalks
Today I have not very often but very interesting scenario:
This is my archive. I put it into Azure BLOB container and feel free to use it (but I'm not guarantee that it will be available all the time).
This is my repository with source code. It's absolutely #ReadyToGo. You can clone it, publish to your demo tenant and immediately test. If you use on-premise version - do not forget to change launch.json file.
Let me explain some details:
If not Client.Get(URL, ResponseMessage) then
if not ResponseMessage.IsSuccessStatusCode() then begin
local procedure UnzipResponse(ResponseInStream: InStream);
TempNameValueBuffer: Record "Name/Value Buffer" temporary;
TempBlob: Record TempBlob temporary;
ZipMgt: Codeunit "Zip Stream Wrapper";
if TempNameValueBuffer.FindFirst() then begin
I need OpenZipFromStream function to read my Zip from stream to codeunit. I need "Name/Value Buffer" table to read file names inside the archive with GetEntries function. And I need WriteEntryFromZipToOutStream function to read file from archive to stream.
local procedure ParseXml(ResponseInStream: InStream);
XML := '';
if XmlDoc.SelectSingleNode('//' + Element, Node) then
XML := Node.AsXmlElement().InnerText();
My codeunit also contains some more functions but they are not so important.
After App publishing you'll see "Zip Reader" page (or find it with TellMe):
You can use your own link and element name, but if you just push "Read Zip" action - you'll get my default values from test example. And result from xml file:
I hope this example will help you to manage Zip archives.
Attention! It looks like "Zip Stream Wrapper" codeunit works only with *.zip archives. I tested it with *.7z file and it failed.
Business Applications communities