--- title: "Downloading all Comments From Current Decisions Instance" slug: "downloading-all-comments-from-current-decisions-instance" updated: 2021-03-12T15:05:36Z published: 2021-03-12T15:07:29Z canonical: "documentation.decisions.com/downloading-all-comments-from-current-decisions-instance" --- > ## Documentation Index > Fetch the complete documentation index at: https://documentation.decisions.com/llms.txt > Use this file to discover all available pages before exploring further. # Downloading all Comments From Current Decisions Instance Example Lab ArticleWhile Example Lab projects are resources for public use, articles and assets are not actively maintained. Screenshots and features are from the specified version below. These references may become dated as new versions are released. --- ## Overview | ## Example Lab Details | | --- | | **Version** | 6.12.1 | | **Root Folder** | Example Lab - Download All Decisions Comments | | **Modules** | None | | **Dependencies** | None | This Example Lab generates a .doc file with all the comments on your Decisions instance --- ## Explanation First, it fetches all comments in descending order of creation. Next, each comment is looped through and merged to an HTML formatted list. Once finished, that HTML list is formatted to Ascii, and then formatted from Ascii to bytes. This formatting allows the HTML to be changed into a .doc file. Finally, a download file is created with that generated list of bytes as its' contents and a form is displayed to the user to allow them to download it. Reference Articles[Add Comment to Process Folder](http://First,%20it%20fetches%20all%20comments%20in%20descending%20order%20of%20creation.%20Next,%20each%20comment%20is%20looped%20through%20and%20merged%20to%20an%20HTML%20formatted%20list.%20%20Once%20finished,%20that%20HTML%20list%20is%20formatted%20to%20Ascii,%20and%20then%20formatted%20from%20Ascii%20to%20bytes.%20%20This%20formatting%20allows%20the%20HTML%20to%20be%20changed%20into%20a%20.doc%20file.%20%20Finally,%20a%20download%20file%20is%20created%20with%20that%20generated%20list%20of%20bytes%20as%20its'%20contents%20and%20a%20form%20is%20displayed%20to%20the%20user%20to%20allow%20them%20to%20download%20it.) ![](https://cdn.document360.io/6ef8bcc1-6489-4486-9ad1-83acff7e5df0/Images/Documentation/2021-01-12_08h58_50.png) ![](https://cdn.document360.io/6ef8bcc1-6489-4486-9ad1-83acff7e5df0/Images/Documentation/2021-01-12_08h58_37.png) --- ## Project Download The examples attached were developed to be instructional and were not developed as officially supported components. For more information or to engage our service team to develop fully supported, production quality solutions, please contact services@decisions.com. Import the project below to a Decisions environment on version 6.12.1 or later using our [Importing/Exporting](https://documentation.decisions.com/docs/exporting-and-importing-overview) article. [ExampleLab[DownloadAllDecisionsComments].zip](https://cdn.document360.io/6ef8bcc1-6489-4486-9ad1-83acff7e5df0/Images/Documentation/ExampleLab%5BDownloadAllDecisionsComments%5D.zip) ---