Skip to main content

Invoke Method

Description

This activity allows you to invoke any publicly available static methods inside a class or publicly available non-static methods inside an object.

note

Microsoft built this activity. Refer to Office Documentation

Usage

Invoke Method

Here is a table specifying the usage of the property:

PropertyStatic MethodNon-Static Method
TargetObjectnull or blankInstance of object
TargetTypeClass Name to which static method belongsnull or blank

Properties

Misc

  • GenericTypeArguments – The generic type arguments of the contained method.
  • DisplayName – Add a display name to your activity.
  • Private – By default, activity will log the values of your properties inside your workflow. If private is selected, then it stops logging.
  • MethodName – Specify the method name to invoke.
  • Parameters – Specify the parameters you must pass to the provided method in the correct order.
  • Result – Create the variable to store the output of the specified method if it has output.
  • RunAsynchronously – Indicates whether the activity's method invokes asynchronously. By default, this checkbox is unchecked.
  • TargetObject – Specify the object instance if invoking a non-static method. For the static method, specify null or blank.
  • TargetType – Specify the name if invoking the static method. For the non-static method, specify null or blank.

Example

Download Example

Invoke Method