Execute function action
- Updated: 2024/12/06
The Execute function action in the Python Script package enables you to execute a function within the Python Script package.
Settings
- In the Python session field, specify a session name. Use the same session name from the Open action.
- Specify the function name to run the function.
- Optional: Provide the arguments required for the function while storing the
returned values in a variable.
This field supports Boolean, dictionary, list, number, or string variables.
Note: The interface allows you to select only one argument. Use a list variable to concatenate multiple arguments into one variable. - Optional: In the Assign the output to variable field, specify the string variable.
- Enable the Throw an exception if the python script fails check box to ensure that the bot displays the same error message as the Python Script in case of any failures.
See the following examples to learn how to use the Python Script
actions when building automations.