VB Script Activity


Executes a VB script.

Inheritance Hierarchy:



This activity allows you to include a block of VB code in your workflow.

In a Workflow:

You would use this activity to execute a VB code block on the server. This may be useful in cases where it is simpler to write a few lines of code than it is to assemble a complex series of activities that perform the same function.

This is a server side activity. Since the script executes on the server it does not have access to the client-side object model.

The script is compiled each time this activity executes. Therefore this activity is less efficient that a precompiled activity containing the same logic. This activity should be used sparingly. It is not intended to replace compiled activities.


Name Description

In/Out Arguments


The parameters of the VB script. Use parameters to make workflow variables available inside the script.

When you configure the Parameters property, Workflow Designer opens a pop-up dialog where you enter the list of parameters. The parameters must agree with the script's parameters in name and type.

Parameter values must be serializable.


Display Name


You can change the name of an activity to one that describes what it does. A descriptive name can make a workflow easier to interpret and maintain.


The VB script to execute. The script will be compiled when the activity executes. If the script contains compilation errors the activity will throw an exception.

Version Information:

Supported from: Geocortex Essentials 3.11.