AMTrigger.ProcessID

Syntax

%AMTrigger.ProcessID%

Trigger supported

Performance, Process

Type

Number

Description

Returns the process ID of the process that caused the trigger to activate. A process ID is a number automatically assigned to a process by the system. It can be used by other actions in Automate Desktop to identify an instance of a process when multiple instances of the same process are running. The table below describes how this value is returned for each type of trigger.

Trigger Type Description
Performance Trigger Returns the process ID of the process that caused the trigger to activate. This is dependent on if the trigger is monitoring for a specific process threshold (for example, process thread count or process handle count).
Process Trigger Returns the process ID of the process that caused the trigger to activate.

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 "The unique process ID that initiated the trigger - %AMTrigger.ProcessID%" in a message box.

Copy
<AMSHOWDIALOG>The unique process ID that initiated the trigger - %AMTrigger.ProcessID%</AMSHOWDIALOG>

Related Topics