订阅

UiPath 活动

UiPath 活动指南

Write CSV

UiPath.CSV.Activities.WriteCsvFile

描述

将指定数据表覆盖至 CSV 文件中。

属性

选项

  • “添加标头”- 此为“布尔值”,指定是否将数据表中的列名称添加至输出 CSV 文件中。
  • 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.

File

  • “文件路径”- CSV 文件的完整路径。

Input

  • “数据表”- 指定要写入 CSV 文件的数据表。
  • Delimiter - Specifies the delimiter in the CSV file: Tab, Comma(','), Semicolon(';'), Caret('^'), or Pipe('|').

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.

“写入 CSV”活动使用示例

To exemplify how to use this activity, we have built an automation project that, among others, uses a Write CSV activity. You can check and download the example from here

UiPath.CSV.Activities.WriteCsvFile

描述

Copies saved for later table data or data from an Excel file to a specified CSV file. The copied data replaces any data that already exists in the CSV file. If the CSV file does not exist, it is created when the automation is executed.

To learn how to use this activity, see Tutorial: Comparing Excel Files and Emailing Reconciliation Errors.

配置活动

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 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 choose one of the available options in the menu 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, from the menu, select where to copy data from:
    • Select an Excel file and use the available options to choose a table, a sheet, or indicate a range in Excel.
    • Use Saved Value - Copy data that you previously saved for later use in the project.
    • Open in Advanced Editor - Enter a VB expression.
  • Include headers - If selected, the column headers are copied to the CSV file.

In the Properties Panel

Common

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

File

Input

  • DataTable - See Write from in the body of the activity.
  • Delimiter - Select the delimiter used in the CSV file: Tab, Comma(','), Semicolon(';'), Caret('^'), or Pipe('|').

Misc

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

选项

  • AddHeaders - See Include headers in the body of the activity.
  • 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.

大约一年前更新


Write CSV


建议的编辑仅限用于 API 参考页面

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