Breaking news from around the world
Get the Bing + MSN extension
The views and opinions expressed in this blog are those solely of the author(s) and do not necessarily reflect Microsoft’s current policy, position, or branding. For official announcements and guidance on Dynamics 365 apps and services, please visit the Microsoft Dynamics 365 Blog.
Choose your path Increase your proficiency with the Dynamics 365 applications that you already use and learn more about the apps that interest you. Up your game with a learning path tailored to today's Dynamics 365 masterminds and designed to prepare you for industry-recognized Microsoft certifications.
Visit Microsoft Learn
2019 release wave 2 Discover the latest updates and new features to Dynamics 365 planned through March 2020
Release overview guides and videos Release Plan | View virtual launch event
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 TechTalks | Customer Engagement TechTalks | Talent TechTalks | Upcoming 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