activities
latest
false
UiPath logo, featuring letters U and I in white

Developer Activities

Last updated Dec 11, 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.

It can only be used inside the Python Scope activity.

Properties

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 only PythonObject 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.
  • Properties

Was this page helpful?

Get The Help You Need
Learning RPA - Automation Courses
UiPath Community Forum
Uipath Logo White
Trust and Security
© 2005-2024 UiPath. All rights reserved.