Try our conversational search powered by Generative AI!

How to access global Dynamic Property list? (EPiServer 4)


How can I access the global dynamic property list in EPiServer 4?

For diagnostic purposes, I want to check for the existence of various dynamic properties in the system (so we know if they are not present they need to be imported). 

However, some properties may exist but not be set on any pages, in which case checking particular pages always gives me the same null response as if the property were not in the system at all.

I would therefore like to query the global system list of dynamic propeties to check what is present.  Can anybody point me to the correct syntax to use?



Apr 10, 2008 15:15

Hi Adam!

Check out the EPiServer.DataAbstraction.DynamicProperty class, it contains a static member ListForPage(PageReference) which returns a collection of DynamicProperty properties for the page.

Using the DynamicProperty class you can see by the Status member wether the value is set for the page, inherited from ancestors or not set at all.

Best regards,

Apr 10, 2008 21:20

Many thanks for your reply.

I can also check to see if :

DynamicProperty.Load(EPiServer.Global.EPConfig.StartPage, propertyName) 
returns null, which seems to work.
Apr 14, 2008 13:48
* You are NOT allowed to include any hyperlinks in the post because your account hasn't associated to your company. User profile should be updated.