Explore Courses Blog Tutorials Interview Questions
0 votes
in RPA by (12.7k points)

In UiPath studio, the Invoke Python Method has parameters under input as Input parameters, instance, and name. The input parameters help in passing arguments from the UiPath workflow to Python code. Is there any way to access the arguments returned from Python code back to UiPath? If yes, Kindly help.

1 Answer

0 votes
by (29.5k points)

Just follow the steps given below and it should work:

  • Add a Python Scope. Make sure to set the path to the executable.
  • Add a Load Python Script activity, and create a new output variable to store the result in.
  • Add an Invoke Python Method activity and configure it (input parameters, instance, name, and result)
  • Add a Get Python Object activity, and convert the returned object into a .NET object (string in your case)

Browse Categories