订阅

UiPath 活动

UiPath 活动指南

Append Line

UiPath.Core.Activities.AppendLine

描述

将指定字符串附加到文件,如果文件不存在,则创建该文件。

属性

File

  • 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 and Use default encoding is not selected, UTF-8 is selected by default. This field supports String variables.
  • “文件名”- 文件的路径。如果路径不完整,则系统会在项目文件夹中创建文件。
  • Use default encoding- If selected, the default operating system encoding is used when a new file is created or when the encoding cannot be detected. If not selected, the UTF-8 encoding is used. This option is not selected by default.

Input

  • “文本”- 要附加到文件的文本。

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.

UiPath.Core.Activities.AppendLine

描述

Adds the specified text to a file without deleting the existing content. If it does not already exist, the file is created when the automation is executed.

To learn how to use this activity, see Tutorial: Working with Files and Folders.

配置活动

In the Body of the Activity

  • Text - 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 text to add:
    • Text from the Project Notebook, a parent Excel file or Outlook account. For example, select an Excel file and then select a cell, or indicate a field from a selected email in Outlook that contains.
    • Use Saved Value - Select text output from another activity that you previously saved for later use in the project.
    • Text - Enter text in the Text Builder.
    • Ask when run - Prompt for a text when the project is executed.
    • Open in Advanced Editor - Enter a VB expression.
  • Write to filename - Click Browse browse files next to the field and then browse to and select the file where to add the text. 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 file:
    • 如果该活动在“遍历文件夹中的文件”活动中,则可选择“当前文件”>“完整路径”,以指明当前正在遍历的文件的路径。
    • Data from the Project Notebook, a parent Excel file or Outlook account. For example, select an Excel file and then select a cell that contains a file path, or indicate a field from a selected email in Outlook 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.

In the Properties Panel

Common

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

File

  • Encoding - The encoding type to be used. You can find the complete list of codes for each character encoding here. To specify the encoding, enter the value from the Name column. If no Byte Order Marks are detected and Use default encoding is not selected, UTF-8 is selected by default.
  • FileName - See Write to filename in the body of the activity.
  • Use default encoding- If selected, the default operating system encoding is used when a new file is created or when the encoding cannot be detected. If not selected, the UTF-8 encoding is used. This option is not selected by default.

Input

Misc

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

8 个月前更新


Append Line


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

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