AMCondition - Service
Syntax
%AMCondition.ServiceName%
Supported condition
Type
String
Description
Returns the Service Name of the service that activated the condition. A service can normally be identified by its unique Service Name, Service Display Name or Service File Name. The Service Name is usually a shortened name for a service as compared to the more detailed Service Display Name. The Service File Name (also known as path to executable) displays the full path to the executable file related to the service. For example, Automate 2024 Management Server has the following name properties (as illustrated below):
-
Service Name - AManagement[NN]
-
Service Display Name - Automate server
-
File Name - "C:\Program Files (x86)\Automate 2024\AME_MAN.exe"
Example
- 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 service name of the service that activated the condition: %AMCondition.ServiceName%" in a message box.
<AMSHOWDIALOG>The service name of the service that activated the condition: %AMCondition.ServiceName%</AMSHOWDIALOG>