Activities
latest
false
- Overview
- Cryptography
- Database
- Java
- Python
- WebAPI
Invoke Python Method
Developer Activities
Last updated Apr 23, 2024
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.
Note: The Python activity package is now
compatible with .NET 6 Windows.
Common
- DisplayName - The display name of the activity. This field supports only
String
variables.
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 onlyPythonObject
variables. - Name - The name of the method that is to be invoked. This field supports only
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.