I want to remove the Metadata Schema from a folder using the core service API. I have tried setting the MetaDataSchema
and MetaData
properties of the folder to null
but this doesn't change anything.
var organizationalItem = (FolderData)client.Read(organizationalItemID, new ReadOptions());
organizationalItem.Metadata = null;
organizationalItem.MetadataSchema = null;
organizationalItem = (FolderData)client.Save(organizationalItem, new ReadOptions());
Any ideas what I am doing wrong?
organizationalItem
variable at debug mode or you have checked the folder property in CME? If it is later case, check after clearing your cache and restarting the COM+