UiPath Activities

Invoke Python Method

UiPath.Python.Activities.InvokeMethod

Helps you run a specified method from a Python script directly in a workflow. The script that contains the method needs to be loaded into the environment first by using the Load Python Script activity. Can only be used inside the Python Scope activity.

Properties

Common

  • DisplayName - The display name of the activity.

Input

  • Input Parameters - A list of input parameters for the Python script that is to be invoked, if any. This field supports only IEnumerable<Object> variables.
  • Instance - The Python script that contains the method you want to run, stored in a PythonObject variable. This field supports only PythonObject variables.
  • Name - The name of the method that is to be invoked. This field supports only strings and String variables.

Misc

  • Private - If selected, the values of variables and arguments are no longer logged at Verbose level.

Output

  • Result - The result of the invoked method, stored in a PythonObject variable. Can be further processed using the Get Python Object activity and converted to a .NET datatype.

Invoke Python Method


Suggested Edits are limited on API Reference Pages

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