In this article
Use the Action tab to specify actions that are to be performed on the data. The Action tab has four sub-tabs:
- Script - write into this tab the actions that are to be run on the selected source records. The actions are run once for each record.
- Global Variables - here you must define the script properties that will be available to all the records.
- Global Script- any actions written in this tab are run once at the beginning of the process.
- Post Script- any actions written in this tab are performed once after all the other actions have been performed.
Note: You are not required to enter information into this tab. However, any scripting entered on this tab must be in JSCRIPT.NET format. Refer to MSDN.COM for further details.
Fields selected in the Source tab (go to About Source Types for more information) are listed in the Available Fields column. These fields are available as Strongly Typed Properties in the script code.
If you wish to change data, write the required action into the Action field.
Script
Into this tab you must type in the actions that are to be run for the selected source records. Each action will be run once for each selected record - .
Figure 1 - Example of the Script tab
Note that any variables selected in the Source tab are listed in the Available Variables column.
Global Variables
In this tab you must define any script properties that are to be available to the database records - .
Figure 2 - Example of the Global Variables tab
Global Script
Any actions written here are performed once at the beginning of the process. Here you could, for example, tell the system to send you an email to inform you that the scripting procedure is about to start - .
Figure 3 - Example of the Global Script tab
Post Script
Write into this tab any actions that you wish to be performed once, only on completion of the other Script actions. An example here could be to tell the system to send you an email once the scripting process is complete - .
Figure 4 - Example of the Post Script tab