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

工作流活动

上次更新日期 2026年3月5日

触发表单按钮

UiPath.Form.Activities.TriggerFormButton

描述

Use this activity to trigger the execution of the Do block of an external process.

您需要提供要从外部执行的流程 ID,以及在外部表单中执行 Do 块的按钮的键值。在运行时,该活动会搜索指定的表单流程 ID,然后单击指定的按钮键以执行 Do 块。要找出表单流程 ID,请使用相应工作流中“启动表单”活动 的“输出”字段

项目兼容性

Winodows - Legacy | Windows

属性面板

常见

此类别中的属性是指常见活动设置。

  • Display Name (String) - Sets the name for this activity. For example, "Trigger Approve Button On Form".

输入

此类别中的属性是指外部触发的表单的标识符。

  • Button Key (String) - Enter the key of the button used to trigger the Do block. The value must match the field key value of the button component in the referenced form.
  • Form Process Id (Int32) - Enter the ID of the process that generates the form containing the triggering button. You can retrieve the process ID through the Output field of the Start Activity. Make sure you are in the correct process when you use this option, as you need to collect the ID of the process that needs to be triggered externally.

其他

此类别中的属性是指其他设置。

  • Private (Boolean) - To skip logging variables and arguments at Verbose level, check this box. By default, the checkbox is cleared (set to false).

工作流示例

以下示例演示了如何配置触发器表单按钮。

  1. For example, you design a button (Approve) in the Form1 form of the Process1 process. While in Process1, make sure to check the following:
    • 使用 "approve" 作为按钮组件的字段键值。
    • 您可以使用“启动表单” 活动来检索 Process1 流程 ID:在活动的“输出” > “表单流程 ID” 字段中创建一个变量 process_id
  2. You have another process, called Process2, and you need it to trigger the Approve button of the Form1 form (which is generated by the Process1 process). Process1 is a process external to Process2. While in Process2, make sure to check the following:
    • 您将使用“触发器表单按钮”活动。
    • For the Button Key property, enter the field key of the Approve button from Process1 (for example, "approve").
    • For the Form Process Id, enter the Process1 process ID returned by the Start Activity (for example, the variable process_id).

Result: The Trigger Form Button activity searches for the indicated process ID and clicks on the specified button, thus executing the Do block in the Form1 form (externally triggered from Process2).

  • 描述
  • 项目兼容性
  • 工作流示例

此页面有帮助吗?

连接

需要帮助? 支持

想要了解详细内容? UiPath Academy

有问题? UiPath 论坛

保持更新