UiPath Invoke Code

UiPath Invoke Code

We will learn step by step tutorial for “UiPath Invoke Code”.The Invoke Code activities provide ways to incorporate VB.Net code and custom VB.Net code into UiPath automated workflows. also synchronously invokes VB.NET or C# code, optionally passing it a list of input arguments. The assemblies referenced by your code need to be added into the Imports panel in order to write the code.

Invoke Code activity can also return Out arguments to the caller workflow. It is 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

Properties :


  • Arguments – The parameters that can be passed to the code that is invoked.
  • Code – The VB.net code that is to be invoked.
  • Language – A drop-down menu that specifies what language the invoked code is written in. The available options are VBNet and CSharp.

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.

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.

Invoke Code Example:

In this example for writing the code in vb.net using uipath. we have to call “invoke code” activities and write the code in vb.net. we can use vb.net code result in the workflow. the output will display in the right side in the output panel in the uipath studio.

UiPath Invoke Code


I hope you liked this article about UiPath Invoke Code in uipath. I would like to have feedback from my blog readers. Your valuable feedback, question, or comments about this article are always welcome.


Leave a Reply

Your email address will not be published. Required fields are marked *

This site uses Akismet to reduce spam. Learn how your comment data is processed.