AMTrigger.Trigger

Syntax

%AMTrigger.Trigger%

Trigger supported

Global (supports all triggers)

Type

String

Description

Returns the name of the trigger that caused the task to start. Each trigger has its own "unique name" (listed below). For example, if the File System trigger was fired, this AMTrigger returns the value AMFILETRIGGER.

Trigger Unique Name
Event Log AMEVENTLOGTRIGGER
File System AMFILETRIGGER
Idle AMIDLETRIGGER
Key AMKEYTRIGGER
Performance AMPERFORMANCETRIGGER
Process AMPROCESSTRIGGER
Schedule AMSCHEDULETRIGGER
Service AMSERVICETRIGGER
SNMP Trap AMSNMPTRIGGER
Startup AMSTARTUPTRIGGER
Window AMWINDOWTRIGGER
WMI AMWMITRIGGER

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.

Display the message "AMTrigger.Trigger return value - %AMTrigger.Trigger%" in a message box.

Copy
<AMSHOWDIALOG WINDOWTITLE="AMTrigger Return Value">AMTrigger.Trigger return value - %AMTrigger.Trigger%</AMSHOWDIALOG>

Related Topics