AMTrigger.TaskLate

Syntax

%AMTrigger.TaskLate%

Trigger supported

Schedule

Type

Boolean

Description

Indicates to the task whether the schedule trigger launched past it's next launch date/time. This can occur if the computer was turned off or the Automate Desktop Task Service was not running when the task was initially scheduled to run. If the task was late, the value returned is 1. Otherwise, it will be 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>