adTempus user script samples

This page lists sample scripts for use with the adTempus user scripting system. These are scripts used within adTempus to augment or control job execution.

For programmatic access to adTempus (creation and modification of jobs, etc.), see the client API instead.

Most samples are given in both C# and VB.NET. If a sample is given in only one language and you need the other, there are many free code converters available, such as this one from Telerik.

Name Description Languages
Delay execution by x seconds

This script can be run to add a delay between job steps, response actions, etc.

C#, VB.NET
Set a job variable to the last business day of the prior month

This script can be run by an adTempus script task to set a Job Variable to the last business day of the month prior to when the script is run.

C#
Set Job Variables from values in a trigger file

This script can be used if you want to trigger a job using a file and set Job Variables from values in the file.

C#