Discussions
Categories
Groups
Community Home
Categories
INTERNAL ENABLEMENT
POPULAR
THRUST SERVICES & TOOLS
CLOUD EDITIONS
Quick Links
MY LINKS
HELPFUL TIPS
Back to website
Home
Web CMS (TeamSite)
Inherit Folder profile properties from Workspace Profile Properties...
Viswa
Hi,
I have a Custom Application where I create a workspace and set of folders for each workspace. I am trying to inherit the Workspace Profile fields down to the folder level. I am able to do it for the Custom Picklists and the custom text and numeric fields, but I am not able to do it for the Custom Date Fields (Custom21 - Custom24) from the Workspace profile. The value that is coming up is 1/1/1970 for the fields that have a valid date and 1/1/1601 for the fields that do not have any value. I am using the following code to do that…
edmswsp = myEdmsDb.CreateWorkspace()
edmswsp.SetAttributeByID(imProfileAttributeID.imProfileName, cus10InternalReqid)
edmswsp.SetAttributeByID(imProfileAttributeID.imProfileCustom21, Cd1RequestOpenedDate)
edmswsp.SetAttributeByID(imProfileAttributeID.imProfileCustom22, Cd2ResponseDueDate)
edmswsp.SubType = "work"
updateResults = edmswsp.UpdateAllWithResults(FilePath)
myDocFolders = edmswsp.DocumentFolders
myDocFolder = myDocFolders.AddNewDocumentFolderInheriting("Request", "Request Folder Created for Workspace " + cus10InternalReqid)
myDocFolder.AdditionalProperties.Add("iMan___45", Cd1RequestOpenedDate)
myDocFolder.AdditionalProperties.Add("iMan___46", Cd2ResponseDueDate)
myDocFolder.Update()
When I do a refile from the mailsite, it is able to pull in the correct dates from the workspace profiles.
Please let me know what is wrong and if there is anything else that needs to be done.
I am using 8.0 SP1 DMS
Find more posts tagged with
Comments
Migrateduser
What is Cd1RequestOpenedDate? Date or String? These attributes behave differently
on the different objects...