I need to pass two variables into the python code from UiPath.
The image above shows two variables that I need to use in python.
name is a string and choices is a list.
However, the error shows below. How can I fix this issue?
I need to pass two variables into the python code from UiPath.
The image above shows two variables that I need to use in python.
name is a string and choices is a list.
However, the error shows below. How can I fix this issue?
In the InputParameters
property, you can pass your arguments as an Object[]
array. For example
Object[] inputParameters = new Object[] { "Hello", "World", somePythonObject }
Prepare this object and then pass.
In your Python code, you can access these arguments as you would in a regular Python function, like arg1
, arg2
, and arg3
.
Thanks,
Ashok