Complex filter conditions
IMPORTANT: The Sitefinity SharePoint connector is deprecated and not supported. For more information, see Deprecated capabilities in Sitefinity CMS.
EXAMPLE: If you want to filter SharePoint items, based on the following condition:
Department == Marketing AND (Country == Canada OR Country == USA)
Perform the following:
- Click Administration» Settings» Advanced» SharepointConnector» <your site name> » List mappings » <your list mapping name> » SharePoint filter and set the logical operator to AND.
- Under SharePoint filter, click Filter condition » Create new. Fill out the following properties:
- In Field name, enter
Department - In Field value, enter
Marketing - In Default field value, enter
Marketing - In Comparison operator, enter
==
- In Field name, enter
- Under SharePoint filter, click Logical groups » Create new. The logical group contains collection of filter conditions and collection of other logical groups. Every logical group has an operator that relates the filter conditions and the nested groups. This allows you to construct complex logical expressions.
- Set the group’s logical operator to ORand click Save changes. In the tree on the left, a new item appears under Logical groups.
- Expand the item and click its Filter conditions » *Create new.*Fill out the following properties:
- In Field name, enter
Country - In Field value, enter
Canada - In Default field value, enter
Canada - In Comparison operator, enter
==
- In Field name, enter
- Click Save changes and click again Create new. Fill out the following properties:
- In Field name, enter
Country - In Field value, enter
USA - In Default field value, enter
Canada - In Comparison operator, enter
== - NOTE: When you have a field that appears more than once in the filter, in every appearance the default field value must be the same. In the above example, it must be either Canadaor USA. Therefore, when a new item comes from Sitefinity CMS to SharePoint it will have country Canadaor USAand the item will pass the filter in future synchronizations.
- In Field name, enter
Want to learn more?
Enhance your Sitefinity skills by enrolling in free training sessions. Become Sitefinity certified through Progress Education Community to strengthen your professional credentials.
Get started with Integration Hub | Sitefinity Cloud
This free lesson teaches administrators, marketers, and other business professionals how to use Sitefinity Integration Hub to create automated workflows between Sitefinity and other business systems.
Web Security for Sitefinity Administrators
This free lesson teaches administrators the basics about protecting your Sitefinity instance and your sites from external threats. Configure HTTPS, SSL, allow lists for trusted sites, and cookie security, among others.
Foundations of Sitefinity ASP.NET Core Development
The free on-demand video course teaches developers how to use Sitefinity ASP.NET Core and take advantage of its decoupled architecture and modern development model.