In the last blog, we discussed about Sitecore List manager module and types of Lists. Using the List Manager, you can create Segment Lists segmented with rules. We can use the rules that Sitecore provides out of the box, also we can create custom rules if required. In this blog, we will discuss about how to create custom rules for segmented list using custom facets.
In this demonstration, we will create custom rule to filter out contacts based on their customer status. For that, we have created a custom facet to capture customer status. Refer to this blog to read more about how to set up custom facet.
Create Predicate class:
Creating a predicate class requires creation of a class that is inherited from ICondition and IContactSearchQueryFactory as shown:
IContactSearchQueryFactory – To implement CreateContactSearchQuery method. This method is written if we need to create Segment list custom rule.
ICondition – To implement Evaluate method. This method is written if we need to create Marketing automation custom predicate rule.
Create condition descriptor in Sitecore:
In order to create a condition descriptor:
- You need to deploy the custom predicate DLL to all core roles - Content Management, Content Delivery, Processing, and Reporting.
- Choose a location for your condition under
- /sitecore/system/Settings/Rules/Definitions/Elements - for example,
- /sitecore/system/Settings/Rules/Definitions/Elements/XConnect - Contact
Configure the Automation engine
This step is required if we want to use the custom rule in marketing automation as well.
To configure the Automation Engine:
- Deploy the custom predicate DLL to the Marketing Automation engine and Marketing Automation Operations service.
- Then, you should create a configuration file with the following XML and further add it to the following paths:
- Name of the config should start from sc. and end with .xml like this
This is all you need to do for using the new rules to segment a list by custom facet fields in a contact.
After doing all the above configurations, go to list manager and create a new segmented list. Create new segment and add the new custom rule.
These are just some basic ideas to start with. If you have not looked at the List Manager, you probably should. It is a valuable addition to the Sitecore marketing suite. If you have any queries or suggestions, reach out to us at email@example.com or connect with me by
MORE FROM OUR BLOGS
Supporting & Building Digital Solutions for Improving Customer Experience
Espire upgraded their existing corporate website to Sitecore version 9.1 for streamlining navigation issues, upgraded their E-commerce platform for delivering personalized customer experiences, deployed Sitecore technical enhancements to improve development process like refactoring, Unicorn, Glass mapper and T4templates, Search etc
A Leading Offender Management Software Solution Provider Gains the Competitive Edge of Agility
The client is a leading provider of offender management product, catering to the Governments sector mainly to Canada, USA and UK. With the aim of becoming agile by automating the internal processes and modernizing the systems, the client decided to develop an application to assess their end-client’s business process environment.
Powering Digital Transformation by revamping Quote & Buy process for a UK based leading Insurance company
Espire enhanced the existing Digital Transformation Journey using Umbraco CMS,Designed and implemented Umbraco based system for content management of the forms and modules
Role of data analytics to drive customer acquisition and maximize return on campaigns
Creating a customer-centric digital marketing strategy that accurately targets and addresses your customers’ needs is essential for any business. However, this can be challenging when you lack the right tools and data to help you do it. In this article, we’ll be focusing on how you can use data analytics in your digital marketing efforts to acquire new customers and retain current ones.
Sitecore Symposium 2022 Check out latest updates and announcements
Sitecore made some huge announcements during the Sitecore Symposium 2022 event to continue their journey to build and help and their customer and brands to deliver standout CX through innovative solutions that drive results and build customer loyalty. Learn about all the announcements and updates now.
Sitecore managed cloud drive digital experiences at scale with cloud
Businesses have started investing in digital experience platforms and technologies aggressively to drive omni-channel digital experiences throughout the customer journey. Sitecore empowers businesses to host their different DXP products on cloud, Sitecore Managed Cloud helps them streamline system integration, enhance the speed of deployments while providing improved security and data privacy.
Global Customers Served
Years of Experience in Digital Transformation & Total Experience