How to execute no data return functions in UIPath Studio

  1. Drag Invoke Method activity
  2. Browse for type “System.array” for Target Type, let Target Object since we want to use the static method, not the one from an instance object.
  3. Write which method you would like to use (Copy in our case)

image

  1. Set the argument property (panel on the right of the studio) “Parameters” to match the signature of the method - being in our case: System.array, Int32,System.array,Int32,Int32

Once you click ok, validation error from invoke method should disappear.
Still, your invocation will need to be logically correct and should, for example, indexes not going out of range etc…

Cheers

4 Likes