Invoke Method
Calls a public method of a specified object or type.

#
Designer Properties- TargetType The target type to call a static method on. For instance methods, just leave this field as default (null).
- TargetObject The target object to call the public method on.
- MethodName The name of the public method to be called.
#
Properties
#
Misc- Display Name The display name of the activity.
- GenericTypeArguments The generic type arguments for target object.
- MethodName The name of the public method to be called.
- Parameters The parameters for the method to be called.
- Result The out result after calling the method. It can be set to a variable which can be created under Variables tab at the bottom of the workflow designer.
- RunAsynchronously Checked when running the method asynchronously.
- TargetObject The target object to call the method on.
- TargetType The target type to call a static method on. For instance methods, just leave this field as default (null).
#
ExampleIn this sample, we assign a string variable(myString) to "Test string 2021". Then using InvokeMethod we replace 2021 with ____, we assign it back to myString variable and display it with a MessageBox.