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.

Note Ensure that Microsoft .NET framework is installed on your machine. For manual .NET Script activities, install .NET framework on a client machine; for automatic .NET Script activities, install .NET framework on a server.

To use an external assembly component with a .NET Script activity, add a .NET reference in TotalAgility. See Add a .NET Assembly Path.

  1. Add a .NET Script activity to the map. See Add an activity.
  2. On the Extended Properties page of the .NET Script activity (C#/VB.NET), click the Configuration tab.

    The default script appears in the box.

  3. Either modify the existing template script or enter a new script.
  4. 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]".
  5. 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.

  6. Click Save.