The Run VBScriptThe Run VBScript tool is used to create a task step that runs a Visual Basic Script using data produced by other steps in the task. tool does not require any global configuration; it can be immediately added to a task.
To add a new Run VBScript step to an existing task,
- Open the relevant task (if creating a new task, see How to Create a Basic Task).
|||Click and drag the Run VBScript icon from the Task Browser to the task Design area.|
|||From the task's Design tab, right-click on empty space and select New > Execute > Run VBScript.|
- In the General tab, Name your task step and, if required, choose the input data source for your script.How Do I Do This?
The General tab is used to enter the following details for the step:
Name — Enter a meaningful name for the step
Tip: If this task instance makes use of two or more Run VBScript steps, ensure the Name used is unique for each individual step.
Description — If required, enter a description of this step Use a Recordset — Enable this parameter if recordset data from a previous task step is required when running the script Input Recordset — Contains all available recordsets from steps previously created in the task Read documents from a source — Enable this parameter if document data from a Format task step is required when when running the script Document Source — Contains all available documents from Format steps previously created in the task; note that the document format is displayed after the step name
For more information, go to the main General tab topic.
- Go to the Main tab and enter the VBScript as required.
Go to the Options tab and select the relevant error handling options for this task step.How Do I Do This?
The Options tab allows you to define how errors in this step are handled at task runtime.
If an error occurs, you can decide whether the step should Continue processing, or terminate the step immediately (Abort Step).
If the step is aborted, you can choose to Continue processing onto the next step in the task, or terminate the whole task immediately (Abort Task).
If Run memory provider(s) after VB Script execution is enabled, then configured memory providers are run after script execution.
For more information, go to the main Options tab topic.
Click to save the task step.