Sitecore Tips & Tricks: Sitecore fields collection lazy loading

When you try to access the fields collection using Sitecore.Data.Items.Item.Fields property, Sitecore loads that collection lazily and hence it may not contain standard values or null values for fields with no standard value, and may not contain other inherited field values such as cloned field values.

In this case, to force Sitecore to load all field values for an item, call the ReadAll() method of the Fields property of the Sitecore.Data.Items.Item class.

Leave a Reply