Delete action emulates the selection of the Delete option found in the Documents menu, the CheckBox Selection menu, and the toolbar of scanEZ.
<Delete NoDeletionStubs="True" DeleteResponses="True"/>
|Attributes||Attribute Value||Value Description||Comment|
|Sets Checkbox Selection mechanics
Sets Focus selection mechanics
|NoDeletionStubs||True/False||Sets the state of the checkbox option||Not Mandatory|
|DeleteResponses||True/False||Sets the state of the checkbox option||Not Mandatory|
If the attribute Checkbox is not used, the behavior of the
Delete operation will default to Focus (i.e. what is currently in focus will be deleted).
The Focus-type mechanics only allow for one tree node entry to be selected at once.
<ytriaAutomation Version="1.0" Application="scanEZ" ApplicationVersion="16.5" Console="true">
<Load Server="ACME01/ACME" Database="MailTest.nsf"/>
<focus target="tree" category="Documents" type="Appointment"/>
<Setparam Field="TitleOptionType" Value="Field"/>
<Setparam Field="FieldAttribute" Value="Value"/>
<Setparam Field="TitleOptionFieldName" Value="AppointmentType"/>
<Delete Checkbox="true" NoDeletionStubs="true" DeleteResponses="true"/>
In the script above, the database 'MailTest.nsf' will be loaded into scanEZ and the focus placed on the Document category "Appointment" in the selection tree. The displayed titles will be changed for all documents within this category using the value of the item named "AppointmentType". A Regex search will be launched on these documents' titles to find all that correspond to the title "3"; they will be CheckBox selected. The
Delete action will then delete all documents selected, as well as any responses, without creating deletion stubs.