Converting an Excel File to CSV
- 11 Mar 2021
- 1 Minute to read
- Print
- DarkLight
This documentation version is deprecated, please click here for the latest version.
Converting an Excel File to CSV
- Updated on 11 Mar 2021
- 1 Minute to read
- Print
- DarkLight
Article summary
Did you find this summary helpful?
Thank you for your feedback
Overview
The Convert Excel to CSV component converts Excel-formatted tabular data to CSV format.
The following example demonstrates how to convert the data in an Excel file to CSV format through use of a Flow containing a Form.
Example
- From a Designer Project in the Decisions Studio, click the CREATE FLOW button, select Flow, provide a Name, and click CREATE.
- From the Toolbox tab, attach a Convert Excel To Csv step from the DATA > EXCEL AND CSV category, to the Start step.
- Navigate to the newly added step's Properties tab, and select Edit Input Mappings.
- Change the mapping of Input to Constant, then click Choose File; select the desired Excel file, then click Open.
- Change the mapping for Ignore First Line and Skip Blank Line to Constant and set both Inputs to True.
- Constant map the Type; select Csv from the dropdown menu. Then click OK.
- Back in the Flow Designer, attach a Show Form step from the FAVORITE STEPS category of the Toolbox tab, to the Done path of the Convert Excel File step; navigate to the Show Form step's Properties, click PICK OR CREATE FORM, then CREATE a new Form.
- From the Form Designer, attach a Button component from the Toolbox, with the Button Text "Close."
- Add a File Download component from the Toolbox; set Select Button Type to Button.This Button will serve as the link to download the converted Excel File. Label it accordingly by changing the Text and Data Name to something like "Download CSV File."
- Save the Form, then close the Form Designer via X.
- Back in the Flow Designer, connect the Close path to the End step.
Navigate to the Properties tab for the Form step, map ConvertExcelToCsv1_Output to Download CSV File.
Save the Flow, then if desired, close the Flow Designer.
Debug
- From the Flow Designer, click the Debug link in the top action bar.
- Once the Flow runs, on the Form, click the Download CSV File button, then click Close.
- Check the downloaded file to verify that it was successfully converted to a CSV file.
Was this article helpful?