UiPath Documentation
activities
latest
false
重要 :
请注意,此内容已使用机器翻译进行了部分本地化。 新发布内容的本地化可能需要 1-2 周的时间才能完成。

生产力活动

附加至 CSV

UiPath.CSV.Activities.AppendCsvFile

描述

复制保存以备后用的表格数据或 Excel 范围、表格或工作表中的数据,并将其粘贴到指定 CSV 文件中的现有数据之后。如果 CSV 文件不存在,则系统会在执行自动化时创建该文件。

配置活动

设计器面板

  • Data to append - Select Plus on the right side of the field and then use one of the options in the menu to indicate the data to copy:

    • 选择一个父级 Excel 文件,然后选择指定的范围、表格或工作表,或者在 Excel 中指定一个范围。
    • 如果该活动在“遍历 Excel 中的每一行”活动中,您可以选择“当前行”以在迭代中复制当前行的数据。
    • “使用保存的值”- 选择您先前在项目中保存以备后用的表格值。
    • Open in Advanced Editor - Enter a VB expression.
  • Append to what file - Select Browse 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 select Plus 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:

    • 项目笔记本、父级 Excel 文件或 Outlook 帐户中的数据。例如,您可以选择包含文件路径的单元格。
    • “使用保存的值”- 以索引的形式选择您先前保存以供以后在项目中使用的值。
    • “文本” - 在文本生成器中输入文件路径。您可以将文本与 Excel 文件单元格中的公式结合使用,例如,使用“项目笔记本”中的公式为文件名添加日期。
    • Ask when run - Prompt for a file path when the project is executed.
    • Open in Advanced Editor - Enter a VB expression.

属性面板

常见
  • 显示名称 -“设计器”面板中活动的显示名称。
文件
  • “文件路径”- 请在活动主体中查看“附加到文件”
输入
  • “数据表”- 请在活动主体中查看“要附加的数据”
  • “分隔符”- 选择在 CSV 文件中使用的分隔符:“制表符”、“逗号”(',')、“分号”(';')、“插入符号”('^') 或“竖线”('|')。
  • “编码” - 选择要使用的编码类型。您可以在此处找到每种字符编码的完整代码列表。如果未指定编码类型,活动将搜索文件的字节顺序标记以检测编码。如果检测不到任何字节顺序标记,则会默认选择系统 ANSI 代码页。
其他
  • 私有 - 选中后将不再以“Verbose”级别记录变量和参数的值。

“附加至 CSV”活动使用示例

为举例说明该活动的具体用法,我们构建了一个自动化项目,其中也包含“附加至 CSV”活动。

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

  • 描述
  • 配置活动
  • 设计器面板
  • 属性面板
  • “附加至 CSV”活动使用示例

此页面有帮助吗?

连接

需要帮助? 支持

想要了解详细内容? UiPath Academy

有问题? UiPath 论坛

保持更新