Discussions
Categories
Groups
Community Home
Categories
INTERNAL ENABLEMENT
POPULAR
PUBLIC CLOUD
PRIVATE CLOUD
Quick Links
MY LINKS
HELPFUL TIPS
Back to website
Home
Web CMS (TeamSite)
Adding additional properties to a workspace subfolder
Martijnvl
Hi,
I am trying to add some properties to folders like this:
IManDocumentFolder docFile = myWorkSpace.DocumentFolders.AddNewDocumentFolderInheriting(dr["Name"].ToString(),"");
docFile.AdditionalProperties.Add("iMan___" + AttributeID.nrClass.ToString("D"), dr["docType"].ToString());
docFile.AdditionalProperties.Add(AttributeID.nrCustom1.ToString(), clientnr);
docFile.AdditionalProperties.Add(AttributeID.nrCustom2.ToString(), matternr);
docFile.Security.Inherited = true;
docFile.Update();
But for some reason it won't fill in the properties custom1 and custom2, any idea why this is happening?
I use filesite 8.1.1 and worksite server 8.1 and sdk 8.1.1
Regards,
Martijn van leeuwen
Find more posts tagged with
Comments
jny
All profile attributes need to have a prefix of "iMan___" in the AdditionalProperties collection. For example:
custom1 is "iMan___25"
custom2 is "iMan___26"
Basically, you need to know the numeric value representing the attributeID enum. You should be able to find this easily via the Object Browser of any ide once the imanage.dll has been referenced.
Martijnvl
Tnx for the reply.
it worked!!
Regards,
Martijn