UiPath Documentation
activities
latest
false

Workflow activities

Invoke Method

System.Activities.Statements.InvokeMethod

Invoke Method calls a public method of a specified object or type — instance methods on a target object, or static methods on a target type — optionally passing arguments and returning a result.

Project compatibility

Windows - Legacy | Windows

Configuration

ParameterDescription
TargetObjectThe object whose method is invoked. Used for instance methods. Leave empty when invoking a static method.
TargetTypeThe type whose static method is invoked. Used for static methods. Leave empty when invoking an instance method.
MethodNameThe name of the public method to invoke.
ParametersThe collection of input and output arguments passed to the method, in the order required by the method signature.
GenericTypeArgumentsThe collection of generic type arguments for the method, when the method is generic.
ResultThe value returned by the method, when any.
RunAsynchronouslyWhen selected, the method is invoked asynchronously.

Properties

Common

ParameterDescription
DisplayNameThe display name of the activity.

Misc

ParameterDescription
PrivateWhen selected, the values of variables and arguments are no longer logged at Verbose level.

This activity is built by Microsoft. For more information, see their official documentation.

  • Project compatibility
  • Configuration
  • Properties
  • Common
  • Misc

Was this page helpful?

Connect

Need help? Support

Want to learn? UiPath Academy

Have questions? UiPath Forum

Stay updated