UiPath Documentation
activities
latest
false

开发者活动

上次更新日期 2026年4月21日

调用 Python 方法

UiPath.Python.Activities.InvokeMethod

帮助您直接在工作流中运行 Python 脚本中的指定方法。

需要先使用“加载 Python 脚本”活动将包含该方法的脚本加载到环境中。

只能在“Python 作用域”活动中使用。

属性

常见
  • DisplayName - The display name of the activity. This field supports only String variables.
输入
  • “输入参数”- 要调用的 Python 脚本的输入参数列表(如有)。该字段仅支持“IEnumerable<Object>”变量。
  • “实例”- 包含要运行的方法的 Python 脚本,存储在“PythonObject”变量中。该字段仅支持“PythonObject”变量。
  • Name - The name of the method that is to be invoked. This field supports only String variables.
其他
  • “私有”- 选中后将不再以“Verbose”级别记录变量和参数的值。
输出
  • “结果”- 调用方法生成的结果,存储在“PythonObject”变量中。您可使用“获取 Python 对象”活动进一步处理该变量,并将其转换为 .NET 数据类型。
  • 属性

此页面有帮助吗?

连接

需要帮助? 支持

想要了解详细内容? UiPath Academy

有问题? UiPath 论坛

保持更新