Create custom reference data types
Version:
You can create additional reference data types as needed. To create a reference data type:
-
Create a custom common data type. Common data is culture independent and does not require translation. Ensure that the class is marked as
[Serializable]: -
Create a custom culture data type. Ensure that the class is marked as
[Serializable]: -
Choose a definition type name. It is recommended that you store definition type names in a central location. For example, Sitecore’s default definition type names are stored under
Sitecore.Marketing.Operations.Xdb.ReferenceData.Model.Definitions.DefinitionTypeNames. -
Use custom definition type as shown. If the type does not exist, it will be created when the
EnsureDefinitionTypeAsync()method is called:
If you have suggestions for improving this article, let us know!