AMTrigger.TaskLate

Syntax

%AMTrigger.TaskLate%

Trigger supported

Schedule

Type

Boolean

Description

Indicates to the task whether the schedule trigger launched past the next launch date/time. This can occur if the computer is turned off or the Automate Desktop Task Service is not running when the task is initially scheduled to run. If the task is late, the value returned is 1. Otherwise, it is 0.

Example

NOTE:
  • Copy and paste the sample AML code below directly into the Task Builder Steps Panel.
  • To successfully run the sample code, update parameters containing user credentials, files, file paths, or other information specific to the task to match your environment.

If/Else statement that sends the administrator message stating that task ran on time or ran late depending on AMTrigger.TaskLate value returned.

Copy
<AMIF EXPRESSION="%AMTrigger.TaskLate% = 1">
<AMEMAIL ACTIVITY=send FROM=<AMELSE />
<AMEMAIL ACTIVITY="send" FROM="Dev@myCompany.com" TO="Admin@myCompany.com" SUBJECT="Task Ran On Time" BODY="Scheduled task ran on time." />
</AMIF>