--- title: "List to CSV Mapping" slug: "list-to-csv-mapping-step" updated: 2025-07-24T12:45:24Z published: 2025-07-24T12:45:24Z canonical: "documentation.decisions.com/list-to-csv-mapping-step" --- > ## 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. # List to CSV Mapping | ## Step Details | | --- | | **Introduced in Version** | --- | | **Last Modified in Version** | 9.8.0 | | **Location** | Data > Excel & CSV | The **List to CSV Mapping** step can be used to populate a **CSV** or **Excel** **File** with data from a list. This article describes all the Step Properties and the usage of Mapping Editor to pass the data from a user-defined data type to generate a CSV or EXCEL file. Column LimitNo more than 49 columns can be mapped to this step at a time. --- ## Properties #### Input Data This will allow to configure the file that the step will output. | Property | Description | Data Type | | --- | --- | --- | | Output File Type | Defines the type of file the step will output. Currently, the options are CSV, Excel_xls, Excel_xlsx, and AutoSelect. **Note:** Autoselect defaults to CSV. | -- | | CSV Delimiter | Allows configuring the separator to be used for the CSV row. | -- | | Output Header Row | Enabling this property exposes a new setting: **Fields** under the INPUTS section in the Properties panel. This gives users access to adding a header row and configuring the formatting of the text defined in the header. | Boolean | | Header Row Number | Determines which row the headers are placed on in the file. | Int32 | | Start Data On Row | Determines which row the data begins on the file. | Int32 | | Load Template | Enabling this property gives users access to the Template Inputs. | Boolean | | Worksheet Index | Determines the sheet number where the values should be presented. The index of the worksheet starts from 0. **Note**: Only applicable for .xls and .xlsx file types. | Int32 | | Quotation Mark Behavior | This will allow users to specify when to include quotation marks (") for CSV values. E.g., the list contains a comma, - **Always Quote**: All values will be quoted always - **Quote If Special Chars Present**: All values that contain special characters, such as quotation marks and separator characters, will be quoted. It is the same behavior as MS Excel for exporting text files. - **Quote Only If Needed**: Only quote values when needed. For example, if one value contains a quotation mark, but the quotation mark is not at the beginning of this value, this value will not be quoted. - **Never Quote**: All values will not be quoted. The exported text file with this type may not be read back correctly because the needed quotation marks are absent. | -- | | Auto Format Cell Value (v9.8+) | Only available for the Excel_xls and Excel_xlsx Output File Types. When this is enabled the cell values will automatically format to the type of data being passed into the step. Without this enabled all values will be of the String data type. | Boolean | #### INPUTS This will enable the definition of the input data to be passed. | Property | Description | Data Type | | --- | --- | --- | | INPUTS | List of Objects to add to the CSV file. Users have the flexibility to pass any [user-defined data type](https://documentation.decisions.com/docs/about-data-structures) to this property. This allows adding multiple fields (columns) to the CSV or Excel file. This can be achieved by mapping additional fields via the mapping editor. **Note:** It is mandatory to map input data using the [Show Item Mapping Editor](/step-library/docs/list-to-csv-mapping-step)in the step properties located above the search bar. For more information, refer to the next section of this article.![](https://cdn.document360.io/6ef8bcc1-6489-4486-9ad1-83acff7e5df0/Images/Documentation/image-1701856142719.png) | List of String | | Fields | Allows to define the formatting of the header. | --- | | | Is Bold | Formats the text in Bold. | --- | | | Percent Increase in Font Size | Increases the size of the Header text in percentage. | --- | | | Title Setup | Defines the text shown in the header row. | --- | | | Column Width | Defines the width of the Column containing the Header Row. | --- | | Template | Defines the formatting of the new CSV file to follow the same formatting of this template. | FileData | #### Outputs | Property | Description | Data Type | | --- | --- | --- | | Outcome File | File created when the Flow executes this step successfully. | FileData | ![](https://cdn.document360.io/6ef8bcc1-6489-4486-9ad1-83acff7e5df0/Images/Documentation/image-1701789729484.png) --- ## Using the [Mapping Editor](https://documentation.decisions.com/docs/using-the-mapping-editor) As mentioned in the above section (under INPUTS), the step accepts the input type as "List of String," but users can pass any [user-defined data type](https://documentation.decisions.com/docs/about-data-structures) to this property. The following section demonstrates how to map the user-defined data type by adding multiple fields. 1. From the Toolbox, Add a **GetAll** step from any of the User-Defined Types and join it to the 'List to CSV Mapping Step'. 2. From the Properties Panel, navigate to the INPUTS of the 'List to CSV Mapping Step'. 3. Choose the mapping type 'Select From Flow'. Click on 'Edit' and pick the data as the output of the GetAll step (Results). Click on Done.![](https://cdn.document360.io/6ef8bcc1-6489-4486-9ad1-83acff7e5df0/Images/Documentation/image-1701858778883.png) 4. Click on the 'Show Item Mapping Editor' from the properties panel located above the search bar. A Mapping Editor screen appears with two sections: 1. **FLOW DATA**: This section shows all the inputs available within the Flow. 2. **STEP INPUTS**: This section allows configuring the number of fields to be added in CSV or EXCEL. 5. From the STEP INPUTS section, expand the Inputs, change the mapping type of ITEM to Build Data, and click on the Pencil icon to add the number of fields. This defines the number of columns that will be generated in the output file. ![](https://cdn.document360.io/6ef8bcc1-6489-4486-9ad1-83acff7e5df0/Images/Documentation/image-1701863845983.png) 6. From the FLOW DATA, expand the __INPUT and map the fields to the newly added fields. Mapping is done by clicking and dragging action, generating a blue-dotted line showing the value passed from __INPUT to the added Fields.![](https://cdn.document360.io/6ef8bcc1-6489-4486-9ad1-83acff7e5df0/Images/Documentation/image-1701864643878.png) 7. Click OK and Debug the Flow. Data from the User-Defined type will be passed to the respective fields.![](https://cdn.document360.io/6ef8bcc1-6489-4486-9ad1-83acff7e5df0/Images/Documentation/image-1701864869862.png) --- ## Feature Changes | Description | Version | Release Date | Developer Task | | --- | --- | --- | --- | | Added the ability to define the Behavior of Quotation Marks for CSV file type. | [8.17](https://documentation.decisions.com/v99/docs/version-817x-release-notes) | December 2023 | [DT-038734] | | Added the Auto Format Cell Value setting. | [9.8](https://documentation.decisions.com/v99/docs/version-98x-release-notes) | March 2025 | [DT-043525] | Related Information Example Lab: [Using List To CSV Mapping Step](https://documentation.decisions.com/projects/docs/using-list-to-csv-mapping-step) Forum Posts: [](https://support.decisions.com/forum/topic205-using-csv-to-list-mapping-step.aspx)[How Do I Use The List To CSV Mapping Step?](https://community.decisions.com/discussion/1805/how-do-i-use-the-list-to-csv-mapping-step) [Number Of Fields On List To CSV Mapping Step](https://community.decisions.com/discussion/27760/number-of-fields-on-list-to-csv-mapping-step) [List To CSV Mapping Step, Excel Numbers](https://community.decisions.com/discussion/29557/list-to-csv-mapping-step-excel-numbers) Training Video: [Dynamic Excel Creation](https://www.youtube.com/watch?v=hcIiRwi_8wo)