---
title: "Getting File Data From a Document"
slug: "getting-file-data-document"
updated: 2024-09-18T15:35:47Z
published: 2024-09-18T15:35:47Z
---

> ## 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.

# Getting File Data From a Document

## Overview

Users are able to access data from documents that have been uploaded to Decisions. This allows users the flexibility of sourcing information for Flows and Projects from an outside pre-existing source.

For more information on how to add a document, see [Adding Documents To The Portal.](/v9/docs/adding-documents-to-the-portal)

Below is a downloadable example to [import](https://documentation.decisions.com/v9/docs/importing-and-exporting-projects)into Decisions.

[Getting File Data From A Document-07042020-041053.zip](https://cdn.document360.io/6ef8bcc1-6489-4486-9ad1-83acff7e5df0/Images/Documentation/Getting%20File%20Data%20From%20A%20Document-07042020-041053.zip)

## Example

The following example will source data from an uploaded document in a folder and display it on a Form. The document used in this example is a list of airports and can be downloaded below.

[Airports.txt](https://cdn.document360.io/6ef8bcc1-6489-4486-9ad1-83acff7e5df0/Images/Documentation/Airports.txt)

---

1. From the Designer Project, right-click the folder, click **Manage**, and select **Get Designer Folder ID**.  
![](https://cdn.document360.io/6ef8bcc1-6489-4486-9ad1-83acff7e5df0/Images/Documentation/2024-09-18_09h51_45.png)
2. Click **Copy Text** and click DONE.  
![](https://cdn.document360.io/6ef8bcc1-6489-4486-9ad1-83acff7e5df0/Images/Documentation/2024-09-18_09h54_06.png)
3. In the Designer Project, click CREATE FLOW and select **Flow**. Name the Flow and click CREATE.
4. From the Flow Designer, add a **GetByFolderID** step from the **INTEGRATION > INTERAL SERVICES > DOCUMENTSERVICE** category in the **Toolbox**panel.
5. On the **Properties**panel, click **Unknown**next to the **folder****ID** field and select **Constant**. Paste in the copied Id from the folder. 

![](https://cdn.document360.io/6ef8bcc1-6489-4486-9ad1-83acff7e5df0/Images/Documentation/2024-09-18_11h08_18(1).png)
6. Add a ForEach step from the Toolbox panel to the Get By Folder ID step by navigating to FLOW MANAGEMENT > ITERATION. On the Properties panel, click EDIT under the Collection field. Select **Get By Folder ID 1_Output** and click DONE.  
![](https://cdn.document360.io/6ef8bcc1-6489-4486-9ad1-83acff7e5df0/Images/Documentation/2024-09-18_11h13_01.png)
7. Add a **GetDocumentData** step from the **INTEGRATION > INTERAL SERVICES > DOCUMENTSERVICE** category in the Toolbox panel to the **Next**path. On the Properties panel, map **Item.DocumentID**to the **document ID** field.  
![](https://cdn.document360.io/6ef8bcc1-6489-4486-9ad1-83acff7e5df0/Images/Documentation/2024-09-18_11h16_45.png)
8. Add a **Get String From Bytes** step from the **DATA >****TEXT**category of the Toolbox panel to the Get Document Data step. On the Properties panel, map **GetDocumentData_Output.Contents** to the **Bytes**field under the INPUTS category by clicking **Pick**.  
![](https://cdn.document360.io/6ef8bcc1-6489-4486-9ad1-83acff7e5df0/Images/Documentation/2024-09-18_11h20_52.png)
9. Attach a **Show Form** step from the FAVORITE STEPS category in the Toolbox panel to the Done path of the ForEach Step and [create a new Form.](/v9/docs/create-forms)
10. Configure the Form with a **Text Box Multi Line** component (DocumentInfo) and **Button**component (Done). Click Save and close the Form.  
![](https://cdn.document360.io/6ef8bcc1-6489-4486-9ad1-83acff7e5df0/Images/Documentation/2024-09-18_11h24_31.png)
11. Click Unknown next to the **Document****Info** field and select **Select From Flow**. Select **GetStringFromBytes1_Output** and click DONE.  
![](https://cdn.document360.io/6ef8bcc1-6489-4486-9ad1-83acff7e5df0/Images/Documentation/2024-09-18_11h28_16.png)
12. Connect the Done path of the Get String From Bytes to the ForEach Step. Connect the Done path of the Form to the **End**step. Click Save to save changes to the Flow. ****  
**![](https://cdn.document360.io/6ef8bcc1-6489-4486-9ad1-83acff7e5df0/Images/Documentation/2024-09-18_11h30_50.png)**

---

## Debug

1. From the Flow Designer, select the **Debug**link from the top action bar.
2. Click the****START DEBUGGING button. The Flow runs in the Debugger. The Form opens and the Document's data is displayed in the Rich Text Display control on the Form.

![](https://cdn.document360.io/6ef8bcc1-6489-4486-9ad1-83acff7e5df0/Images/Documentation/2024-09-18_11h31_43.png)

---

For further information on Flows, visit the [Decisions Forum](https://community.decisions.com/categories/Flows).
