Brian Pedersen's Sitecore and .NET Blog
This article describes how to create a simple Sitecore facet consisting of a DateTime and a list of strings.
A contact is made up of facets. Here are all the facets Sitecore uses (you will find the facets in App_ConfigIncludeSitecore.Analytics.Model.Config):
In this example I will add a facet that consists of a date and a list of strings. I will call it “AvailablePublishers“.
This is a real-life example where I needed to store a list of publishers that were available the last time the user was online. Each publisher is just an ID (a string) and I store these as a list on the Contact:
It sounds simple, and it is – but there is a lot of code involved. So hang on, lets code.
STEP 1: THE BASIC INTERFACES
The “AvailablePublishers” is a Facet, the list below consists of Elements. So I need…
View original post 387 more words