5.1: Does a variable exist that lists the steps that failed?

Jim G. (20 posts)
September 25, 2025 10:14 AM
Accepted Answer

Scenario

  • Suppose I have a job and I configure the 'Step Execution Sequence' to be 'Execute steps in sequence; job continues even if a step fails'.
  • After 'n' steps, I'd like to notify recipients of success/failure.

Question

  • At the script level, does a variable exist that lists the steps that failed?
Bill Staff (618 posts)
September 25, 2025 11:16 AM
Accepted Answer

There is no variable with that information, but you can use the API to get information on the previous steps. Here is an example of getting the status for all the steps so far. You can format that information as you wish and then do the notification. A few ways to do the notification:

  • Have it put the information in a Job Variable (using adTempus.JobVariables.Add), then have a subsequent Notification Action or Response that uses the variable. Easiest way to manage the notification message recipients, text, etc.
  • The script can use adTempus.SendNotificationMessage to programmatically create the message. More flexible but harder to maintain.