Configure a .NET Script activity
Set up a .NET Script activity in either of the following ways:
-
Manually: Assign a resource to initialize the activity.
-
Automatically: Configure the .NET Script activities to run automatically once the job is created.
To use an external assembly component with a .NET Script activity, add a .NET reference in TotalAgility. See Add a .NET Assembly Path.
- Add a .NET Script activity to the map. See Add an activity.
-
On the
Extended Properties page of the .NET Script
activity (C#/VB.NET), click the
Configuration tab.
The default script appears in the box.
- Either modify the existing template script or enter a new script.
-
You can manually enter the variables such as ("FirstName") or drag
and drop the variables into the script.
Important When you drag and drop the variable, the variable appears as [Firstname]. For the script to be valid, you must insert the quotes around it. Example: "[Firstname]".
-
To validate the script, click
Validate.
A message appears and informs you if the script is valid or contains errors.
Before continuing, resolve errors and validate the script.
- Click Save.