Skip to main content
Skip table of contents

Rename Lists

Tag: Rename

The Rename action allows you to automatically rename a list.


Detailed Description

When a list must be stored, renaming it is a quick solution. The former name can be used again to create a new, empty list.

Tag Attributes

AttributesValue Description
ListNameAny string to ID the list - Required
NameRegular action name - Required

If ListName and Name are identical (case insensitive), nothing happens and a warning is issued.

Example Scripts

XML
<Rename ListName="oldName" name="newName"/>
XML
<ytriaAutomation>
	<List Name="oldName" Action="SetVar" var4="42"/>
	<List Name="oldName" Action="SetVar" var4=""/>
	<List Name="oldName" Action="SetVar" var4="666"/>
	<Rename ListName="oldName" name="newName"/>
	<Loop list="newName">
		<ExecuteListAction/>
		<Echo value="======> var4={%var4%}"/>
	</Loop>
</ytriaAutomation>
JavaScript errors detected

Please note, these errors can depend on your browser setup.

If this problem persists, please contact our support.