Five New Optimizely Certifications are Here! Validate your expertise and advance your career with our latest certification exams. Click here to find out more
AI OnAI Off
Five New Optimizely Certifications are Here! Validate your expertise and advance your career with our latest certification exams. Click here to find out more
I also tried the below but of no avail
otherProp = new PageDefinition();
otherProp.FieldOrder = prop.FieldOrder;
otherProp.Type = new PageDefinitionType(prop.Type.ID, prop.Type.DataType, prop.Type.Name);
otherProp.PageTypeID = page.ID;
otherProp.Tab = prop.Tab;
otherProp.Name = prop.Name;
otherProp.HelpText = prop.HelpText;
otherProp.EditCaption = prop.EditCaption;
otherProp.Searchable = prop.Searchable;
otherProp.Required = prop.Required;
otherProp.LanguageSpecific = prop.LanguageSpecific;
otherProp.LongStringSettings = prop.LongStringSettings;
otherProp.Save();
otherProp.ClearCache();
This should work for you.
DynamicProperty dynamicProperty = DynamicProperty.Load(e.PageLink, "BlogPageReference");
dynamicProperty.PropertyValue.Value = e.PageLink;
dynamicProperty.Save();
Hi,
I need to create a dynamic property in code and save it. How can I create a dynamic property? I can update the dynamic property but coudn't creat one
DynamicProperty dynProperty = DynamicProperty.Load(page.PageLink, "DynProp");
dynProperty .PropertyValue.Value = "value";
dynProperty .Save();