AMError.ParentTaskName

Syntax

%AMError.ParentTaskName%

Type

String

Description

If a sub-task caused an error, returns the name of the parent task.

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.
Copy
<AMVARIABLE NAME="theError"></AMVARIABLE>
<AMRUN AM_SETVAR="theError;%AMError.ErrorDesc%" AM_ONERROR="CONTINUE" FILE="BogusFile.exe" />
<AMSHOWDIALOG WINDOWTITLE="AMError return value">AMError.ErrorDesc return value: %AMError.ErrorDesc% </AMSHOWDIALOG>

Related Topics