---
title: "Appending CSV File Using String Builder"
slug: "appending-csv-file-using-string-builder"
updated: 2025-06-17T20:59:51Z
published: 2025-06-17T20:59:51Z
---

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

# Appending CSV File Using String Builder

## Overview

Appending **CSV****Files**into Text using a Flow requires a few steps, known as String Builder steps, to get the data from the file and then create the required information.

[Embedded content](https://www.youtube.com/embed/opFZ5ucvo5c)

---

## **Example**

The following example will demonstrate how to append text to a CSV file using the String Builder steps.

Before proceeding with the example, download the CSV File:[Test Data - Sheet1.csv](https://cdn.document360.io/6ef8bcc1-6489-4486-9ad1-83acff7e5df0/Images/Documentation/Test%20Data%20-%20Sheet1.csv)  

1. From a Designer Project, click CREATE FLOW on the **Global** **Action****Bar**and select **Flow.**Provide a **Name** and click CREATE.
2. From the Flow Designer, attach a **Create****Data**step to the **Start**step from the FAVORITE STEPS category of the **Toolbox**panel.
3. On the **Properties**panel under the DATA category, click SHOW EDITOR under the **Data To Create**field.**![](https://cdn.document360.io/6ef8bcc1-6489-4486-9ad1-83acff7e5df0/Images/Documentation/image-1750192835597.png)**
4. From the **Data** **Definitions**window, enter "File" under NAME and select **File****Data**as the TYPE.****Under **Input**, **Constant**map the desired **CSV****File**. Click **Save**and close the window.![](https://cdn.document360.io/6ef8bcc1-6489-4486-9ad1-83acff7e5df0/Images/Documentation/2024-06-20_15h48_17.png)
5. In the Toolbox panel, navigate to **DATA > TEXT > STRING BUILDER** and attach a **Create****String****Builder**step to the Create Data step.![](https://cdn.document360.io/6ef8bcc1-6489-4486-9ad1-83acff7e5df0/Images/Documentation/image-1750192980862.png)
6. In the Toolbox panel, under **DATA > TEXT,** attach a **Get String From Bytes** step to the Create String Builder step. On the Properties panel, map **File.Contents**to the Bytes field under INPUTS.  The Get String From Bytes step is used to convert the CSV File's Contents into a String Output.

![](https://cdn.document360.io/6ef8bcc1-6489-4486-9ad1-83acff7e5df0/Images/Documentation/image-1750193181913.png)
7. In the Toolbox panel, under DATA > TEXT > STRING BUILDER, attach an **Append****Line**step to the Get String From Bytes step. On the Properties panel under the INPUTS category, map **CreateStringBuilder1_Output** to the **String****Builder**field, and **GetStringFromBytes1_Output**to the **Line****To****Add**field.![](https://cdn.document360.io/6ef8bcc1-6489-4486-9ad1-83acff7e5df0/Images/Documentation/image-1750193417135.png)
8. Attach a **Show****Form**step from the FAVORITE STEPS category to the Append Line step. On the Properties panel, click PICK OR CREATE FORM and select Form. Provide a Name and CREATE.![](https://cdn.document360.io/6ef8bcc1-6489-4486-9ad1-83acff7e5df0/Images/Documentation/2024-06-20_15h56_29.png)
9. From the Form Designer, configure the Form to contain a **Text Box Multi Line** component (NewRows) and a **Button**(Done)****component. Click Save and close the Form.  
![](https://cdn.document360.io/6ef8bcc1-6489-4486-9ad1-83acff7e5df0/Images/Documentation/2024-06-20_15h59_13.png)
10. Back in Flow Designer, set the **New****Rows**Input on the Form step to **Ignore**.![](https://cdn.document360.io/6ef8bcc1-6489-4486-9ad1-83acff7e5df0/Images/Documentation/image-1750193598279.png)
11. Attach an **Append** **Text**step from DATA > TEXT > STRING BUILDER to the Form step. From the Properties panel, map **CreateStringBuilder1_Output** to String Builder and **New****Rows**to **Text To Add**.![](https://cdn.document360.io/6ef8bcc1-6489-4486-9ad1-83acff7e5df0/Images/Documentation/image-1750193679151.png)
12. From the DATA > TEXT category of the Toolbox, attach a **To****Text**step to the Append Text step. From the To Text step's Properties tab, map CreateStringBuilder1_Output to String Builder. The To Text step is used to retrieve data from the String Builder.

![](https://cdn.document360.io/6ef8bcc1-6489-4486-9ad1-83acff7e5df0/Images/Documentation/image-1750193750390.png)
13. From the same category of the Toolbox tab, attach a **Get Bytes From String** step to the To Text step; map **ToText1_Output**to the **Str**Input. The Get Bytes From String step is used to convert the To Text step's output into a Byte Array that may be used as contents for the appended CSV file. 

![](https://cdn.document360.io/6ef8bcc1-6489-4486-9ad1-83acff7e5df0/Images/Documentation/image-1750193814831.png)
14. Attach another Show Form step to the Get Bytes From String step. From its Properties tab, select PICK OR CREATE FORM and CREATE a new Form.
15. Configure the Form with a Button component and a **File****Download**component. From the Properties panel under the COMMON PROPERTIES category set the **Select Button** **Type**field to **Button**. Click Save and close the Form Designer.![](https://cdn.document360.io/6ef8bcc1-6489-4486-9ad1-83acff7e5df0/Images/Documentation/2024-06-20_16h15_33.png)
16. Back in the Flow Designer, connect the **Done**path to the **End**step.
17. Select the Show Form step (for the **Download****Form**) and select Build Data for the mapping type for the Download File field. Constant map a **FileName** and map **GetBytesFromString1_Output**to **Contents**. Click Save to save changes to the Flow.When defining the FileName, add .csv to the end to ensure that the file saves as a CSV file. 

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

---

## Debug

1. Click **Debug**from the top action bar.
2. Click START DEBUGGING.
3. When the Flow reaches the Form step, enter "First Name, Last Name, Email" and click Done.Separating the row by commas places each text value in a separate cell on the spreadsheet. 

![](https://cdn.document360.io/6ef8bcc1-6489-4486-9ad1-83acff7e5df0/Images/Documentation/2024-06-20_16h20_21.png)
4. Upon reaching the second Form, click the Download button then open the CSV****file to ensure that it contains the newly input row of text. ![](https://cdn.document360.io/6ef8bcc1-6489-4486-9ad1-83acff7e5df0/Images/Documentation/2024-06-20_16h23_27.png)

---

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