Skip to main content
Skip table of contents

SetVarFromListMerge: combine list entries into variables

Tag: SetVarFromListMerge

The SetVarFromListMerge function concatenates a list of SetVar into a single variable.

Tag Attributes

Attributes

Value Description

ListName

Target list name

Separator

Non-empty text to use as delimiter of the list entries Optional

Example Scripts

CODE
<SetVarFromListMerge ListName="litsFromMerge" separator=":"/>
CODE
<ytriaAutomation application='sapio365' title='TEST - ISSUE ERROR LOOP EXECUTE' targetmodule='Users'>
	<List Name="listFromMerge" Action="SetVar" var3="blue" var4="42"/>
	<List Name="listFromMerge" Action="SetVar" var3="green" var4=""/>
	<List Name="listFromMerge" Action="SetVar" var3="red" var4="666"/>
	<List Name="listFromMerge" Action="SetVar" var3="yellow"/>
	<SetVarFromListMerge ListName="listFromMerge" separator=":"/>
	<Echo value="=====> var3={%var3%}"/>
	<Echo value="=====> var4={%var4%}"/>
</ytriaAutomation>

JavaScript errors detected

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

If this problem persists, please contact our support.