订阅

UiPath 活动

UiPath 活动指南

Read CSV

UiPath.CSV.Activities.ReadCsvFile

描述

读取指定 CSV 文件中的所有条目。

属性

File

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

Output

  • “数据表”- 表示输出数据表,其中包含从 CSV 文件中获取的信息。

选项

  • 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.
  • Has headers - Specifies if the first row in the CSV file should be considered a header row. If set to false, the output DataTable will have columns with default names.
  • IgnoreQuotes - Specifies if quotes should be ignored when reading the file.

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”活动使用示例

为举例说明该活动的具体用法,我们构建了一个自动化项目,其中包含“读取 CSV”等其他类似活动。

您可在此处查看和下载该示例

UiPath.CSV.Activities.ReadCsvFile

描述

Copies all entries from a specified CSV file to an Excel range, table, or sheet, or saves the data for later use in your automation.

To learn how to use this activity, see Tutorial: Copying from CSV to Excel and Emailing the File.

配置活动

In the Body of the Activity

  • Read from file - Click Browse browse files next to the field, and then browse to and select the CSV file to copy the data from. 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.
    • 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.
  • Output to - Click Plus plus button on the right side of the field and then, from the menu, select what to do with the copied data:
    • Select a parent Excel file and then a range, table, or sheet, or indicate a range in Excel where to copy the data.
    • Save for Later Use - Save the output data for later use in your project as input for another activity.
    • Open in Advanced Editor - Enter a VB expression.
  • Has headers - If selected, it indicates that the first row in the CSV file is a header row. If not selected, a header row is added. This option is selected by default.

In the Properties Panel

Common

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

File

Misc

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

选项

  • 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.
  • “有标题”- 在活动主体中查看“有标题”
  • IgnoreQuotes - Specifies if quotes should be ignored when reading the file.

Output

大约一年前更新


Read CSV


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

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