Presentation is loading. Please wait.

Presentation is loading. Please wait.

Fast-Track UiPath Developer Module 6: Invoke Code and Invoke Method

Similar presentations


Presentation on theme: "Fast-Track UiPath Developer Module 6: Invoke Code and Invoke Method"— Presentation transcript:

1 Fast-Track UiPath Developer Module 6: Invoke Code and Invoke Method
Machina Automation Fast-Track UiPath Developer Module 6: Invoke Code and Invoke Method

2 6 – Invoke Code and Invoke Method
Overview: The Invoke Code and Invoke Method activities provide ways to incorporate VB.Net methods and custom VB.Net code into UiPath automated workflows. Organization: This module is organized into the following sections: 6.1: lnvoke Code 6.2: Invoke Method

3 6.1 – lnvoke Code The Invoke Code activity synchronously invokes VB.net code, optionally passing it a list of input arguments. This activity can also return Out arguments to the caller workflow. Properties Input Arguments - The parameters that can be passed to the code that is invoked. Code - The VB.net code that is to be invoked. Common DisplayName - The display name of the activity. ContinueOnError - Specifies if the automation should continue even when the activity throws an error. This field only supports Boolean values (True, False). The default value is False. As a result, if the field is blank and an error is thrown, the execution of the project stops. If the value is set to True, the execution of the project continues regardless of any error. Note: If this activity is included in Try Catch and the value of the ContinueOnError property is True, no error is caught when the project is executed.

4 6.1 – lnvoke Code Properties (continued)
Misc Private - If selected, the values of variables and arguments are no longer logged at Verbose level. Note: The assemblies referenced by your VB.net code need to be added into the Imports panel in order to function. Applicable to LINQ usage While UiPath does not allow Anonymous types to be returned using the Assign activity, using the Invoke Code activity allows Anonymous types to be returned and worked with. Review Example 6.1

5 6.1 – lnvoke Method The Invoke Method activity calls a public method of the specified object or type Invoke Method acts on EITHER a Target Type OR a Target Object. These parameters are mutually exclusive, so if you try to enter a value for both the Target Type and the Target Object, UiPath will display an error on the Invoke Method activity. Review Example 6.2


Download ppt "Fast-Track UiPath Developer Module 6: Invoke Code and Invoke Method"

Similar presentations


Ads by Google