Changes

Activity:AddSearchCriterion (Activity)

1,654 bytes added, 14:13, 7 January 2015
Created page with "{{ActivityInfoBox | title = Add Search Criterion | name = AddSearchCriterion | image = | imagecaption = Activity AddSearchCriterion | purpose = Adds a new search criterion to..."
{{ActivityInfoBox
| title = Add Search Criterion
| name = AddSearchCriterion
| image =
| imagecaption = Activity AddSearchCriterion
| purpose = Adds a new search criterion to a query
| category = Object Primitives
| returns = True if added successfully
| version = 2.1+
}}
The AddSearchCriterion activity adds a new search criterion to a given query using the given parameters.

==Arguments==
{| class="wikitable sortable" | width = "50%"
|-
! Argument !! Type !! Direction !! Purpose
|- align="left"
| And || {{Boolean_MSDN}} || In || If true, criteria are combined using AND (default);<br>if false, criteria are combined using OR
|- align="left"
| Index || {{Int32_MSDN}} || In || Property value index (indexed properties only required)
|- align="left"
| Operator || [[QuerySearchItemOperator]] || In || Search operator used
|- align="left"
| PropertyName|| {{String_MSDN}} || In || Name of property to search the value for
|- align="left"
| PropertyValue || T || In || Property value to be searched
|- align="left"
| Query || [[Query]] || In || Query instance
|- align="left"
| Result|| {{Boolean_MSDN}} || Out || True, if added successfully
|}

==Usage==
This activity adds a new search criterion to a given query using the parameters defined in the arguments. Once the query is evaluated the system searches for the value '''PropertyValue''' in the property '''PropertyName'''. For indexed properties an index can be defined as well. Multiple search criteria are either combined with AND / OR, depending on '''And''' argument.

==See also==
* [[Workflow Designer]]
* [[CreateSearchQuery_(Activity)]]

[[Category:Workflows]]
[[Category:Activities]]
10,686
edits