UiPath Activities

The UiPath Activities Guide

Append To CSV

UiPath.CSV.Activities.AppendCsvFile

Description

Appends the specified DataTable to a CSV file, creating the file if it does not already exist.

Properties

File

  • FilePath - Full path of the CSV file.

Input

  • DataTable - Specifies the DataTable to be appended to the CSV file.
  • Delimiter - Specifies the delimiter in the CSV file: Tab, Comma(','), Semicolon(';'), Caret('^'), or Pipe('|').
  • Encoding - The encoding type to be used. You can find the complete list of codes for each character encoding here. To specify the encoding type to be used, use the value from the Name field. If no encoding type is specified, the activity will search for the file's Byte Order Marks to detect the encoding. If no Byte Order Marks are detected, the system ANSI code page is selected by default. This field supports String variables.

Common

  • DisplayName - The display name of the activity.

Misc

  • Private - If selected, the values of variables and arguments are no longer logged at Verbose level.

Example of Using the Append To CSV Activity

To exemplify how to use this activity, we have built an automation project which also includes an Append To CSV activity.

You can check and download the example from here

UiPath.CSV.Activities.AppendCsvFile

Description

Copies saved for later table data or data from an Excel range, table, or sheet, and pastes it after the existing data in a specified CSV file. If the CSV file does not exist, it is created when the automation is executed.

Configuring the Activity

In the Body of the Activity

  • Append to what file - Click Browse browse files next to the field and then browse to and select the CSV file where to copy 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 then, from the menu, choose one of the available options to indicate the path of the file:
    • Data from the Project Notebook, a parent Excel file or Outlook account. 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.
  • Data to append - 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 copy:
    • Select a parent Excel file, and then a named range, table, or sheet, or indicate a range in Excel.
    • 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.
    • 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

  • DataTable - See Data to append in the body of the activity.
  • Delimiter - Select the delimiter used in the CSV file: Tab, Comma(','), Semicolon(';'), Caret('^'), or Pipe('|').
  • Encoding - Select the encoding type to be used. You can find the complete list of codes for each character encoding here. To specify the encoding type to be used, select Plus plus button > Text, and then enter the value from the Name field in the Text Builder. If no encoding type is specified, the activity will search for the file's Byte Order Marks to detect the encoding. If no Byte Order Marks are detected, the system ANSI code page is selected by default.

Misc

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

Updated 5 months ago


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