SetVarListErrorAction: Gather action errors in one list
SetVarListErrorAction triggers the construction of lists of errors from failed actions.
To access the individual error content, loop the list and use {%ErrorAction%} after ExecuteListAction.
Tag Attributes
Attributes | Attribute Values | Value Description |
---|---|---|
ListName | N/A | Name of list containing the errors - Required |
Action | N/A | Name of actions by which to filter errors. Empty or not supplied, all actions are scanned and their errors added to the list - Optional |
Example Script
<ytriaAutomation>
<OnError continue="true"/>
<LoadSession name="DoesNotExist@LetsTriggerAnError"/>
<ShowUsers/>
<SetVarListErrorAction ListName="ERRORS"/>
<Loop list="ERRORS" OnError="Next">
<ExecuteListAction/> <!-- SetVar ErrorAction here: var name is not free -->
<Echo value="Sadness: {%ErrorAction%}"/>
</Loop>
</ytriaAutomation>