Tag: FilterFromList

The FilterFromList function adds value filters to columns from values in a list of SetVar actions.

<FilterFromList ListName="O365GroupList">
	<SetParam columnID="groupType" value="GType"/>
	<SetParam columnID="displayName" value="GroupName"/>
</FilterFromList>
XML

Tag Attributes

Attributes

Attribute Value

Value Description

Comment

TargetN/AUniquely identifies the grid (grid code name).N/A
ListNameN/AName of list to use as source of values by which to match row.N/A

The list must contain SetVar actions only.

Example Script

Filter columns with IDs groupType and displayName with variables GType and GroupName from list O365GroupList:


<ytriaAutomation Console="True" KeepAlive="True">
	<!--Select Lines="ByValue">
		<SetParam ColumnID="groupType" Value="Security Group"/>
	</Select>
	<SetVarListFromGridSelection ListName="O365GroupList" GroupName="displayName" Type="groupType"/-->
	<List name="O365GroupList" Action="SetVar" GType="Distribution list"/>
	<List name="O365GroupList" Action="SetVar" GroupName="Executives" GType="Distribution list"/>
	<List name="O365GroupList" Action="SetVar" GroupName="newsecgroup"/>
	<List name="O365GroupList" Action="SetVar" GroupName="Tailspin Toys"/>
	<FilterFromList ListName="O365GroupList">
		<SetParam columnID="groupType" value="GType"/>
		<SetParam columnID="displayName" value="GroupName"/>
	</FilterFromList>
</ytriaAutomation>
XML