Requirement : The requirement is to create a zip file from a set of document entries available in document handling, creating a download link and sends the link to user browser.
In this requirement we are using Microsoft Dynamics 365 for finance and operations classes – documentmanagement, ziparchive & ziparchiveentry.
Sample Code :
/// Runs the class with the specified arguments.
/// <param name = "_args">The specified arguments.</param>
public static void main(Args _args)
System.IO.MemoryStream zipArchiveStream = new System.IO.MemoryStream();
const str extensionZip = '.zip';
const str zipFileName = 'myZipfile';
using (System.IO.Compression.ZipArchive zipArchive = new System.IO.Compression.ZipArchive(
while select docuRef
where docuValue.RecId == docuRef.ValueRecId
&& docuRef.RefTableId == 'your table id'
&& docuRef.RefRecId == 'your rec id'
// Creates the file entry in the zip folder.
System.IO.Compression.ZipArchiveEntry fileEntry = zipArchive.CreateEntry(docuValue.filename());
// Opens the created file entry and copies the binary file information of the original file to the file entry in the zip folder.
using (System.IO.Stream fileEntryStream = fileEntry.Open())
// Gets the file stream of the document attachment.
fileStream = DocumentManagement::getAttachmentStream(docuRef);
// Send a download link of the created zip folder to the user.
File::SendFileToUser(zipArchiveStream, zipFileName + extensionZip);
Many times you can faces issues related to connectivity in Microsoft Flow or Microsoft Power Automate. Connectors and Actions of Microsoft Flow like HTTP, SFTP etc. are not working properly as per your need and you are facing connectivity exceptions.
Luckily you can overcome from these issue by setting Retry Policies in Microsoft Flow or Microsoft Power Automate.
Hey Folks ! I had a requirement in Microsoft Dynamics 365 for finance and operations where I want to save & download a file from a SHAREPOINT site and from its folder using X++ code. Here i am using classes –
When i started working in Microsoft Power Apps I started to feel that I am missing source control integration with GIT or VSTS/Devops. But then i realized that Microsoft Power apps is focused on helping people build apps without code or less-code. It means that source control Integration with git or VSTS Or Azure DEVOps are not part of those near-term plans and was never a part of plan from Microsoft side,
But good thing is that you can always restore a Microsoft Power app to a previous version that was saved to the cloud from your Power Apps account.
Dynamics 365 Customer Voice (formerly knows as Microsoft Forms Pro) is an enterprise feedback management application that enables you to easily keep track of the customer metrics that matter most to your business. It provides an easy and friction free experience from creating surveys, for generating actionable insights based on customer feedback with minimal setup time
Introduction – In November 2020, Microsoft renamed or rebranded Common Data Service as Dataverse. This is not first time, Microsoft is renaming and rebranding any product. For example – Microsoft Flow was rebranded as Microsoft power Automate. Dataverse (formerly knows as Common Data Service Or just CDS) allows securely store and mange data that can be used in Power Platform Products like Power Apps or other business apps.
Microsoft Dynamics AX, Microsoft Dynamics 365 for Finance and Operations, D365 FO, Retail, SQL, Microsoft Power Apps, Microsoft Power BI, Microsoft Azure, Logic Apps, Microsoft Flow, Microsoft power automate, Microsoft Power Platform,.Net, X++, C#, Power BI DAX, Data Warehousing, Microsoft Analysis Services, SQL Server Reporting Services