UiPath Activities

The UiPath Activities Guide

Export to CSV

UiPath.Excel.Activities.Business.ExportExcelToCsvX

Exports the data in an Excel range, table, or sheet to a specified CSV file. If the CSV file does not exist, it is created when the automation is executed. If the file already exists, it is replaced by the automation.

When the data is exported, column headers are exported as follows:

  • For tables, the headers are exported if visible in Excel.
  • For pivot tables, headers and the total row are exported if visible in Excel.
  • For sheets and ranges, only the data visible in Excel is exported, no headers are added by default.

Configuring the Activity

In the Body of the Activity

  • Write to what file - Click Browse browse files next to the field, and then browse to and select the CSV file where to export the data. To create a new file when the automation is executed, browse to the folder where to create it and enter the file name.
    Alternatively, you can click Plus plus button on the right side of the field and select one of the available options to indicate the path of the file:
    • Excel or Outlook data. For example, you can select a cell that contains a file path.
    • Use Saved Value - Select a value in the form of a file path that you previously saved for later use in the project.
    • Text - Enter a file path in the Text Builder. You can combine text with a formula from an Excel file cell, for example to add a date to the file name using formulas in the Project Notebook.
    • Ask when run - Prompt for a file path when the project is executed.
    • Open in Advanced Editor - Enter a VB expression.
  • Write from - Click Plus plus button on the right side of the field, and then use one of the options in the menu to indicate the data to export:
    • If the activity is inside an Excel For Each Row activity, you can select CurrentRow to copy data from the current row in the iteration.
    • Select an Excel file, and then a named range, table, or sheet, or indicate a range in Excel.
    • Use Saved Value - Select a table value that you previously saved for later use in the project.
    • Open in Advanced Editor - Enter a VB expression.

In the Properties Panel

Common

  • DisplayName - The name displayed for the activity in the Designer panel.

File

Input

Misc

  • Private - If selected, the data used in the activity is not logged by StudioX.

Updated about a month ago


Export to CSV


Suggested Edits are limited on API Reference Pages

You can only suggest edits to Markdown body content, but not to the API spec.