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)
Problem Searching Folders
ManoloMadrid
Hi All:
I'm having two problems searching for folders with the imanage.dll library:
I'd like to search a folder using the criteria Custom1, Custom2 and Class and I can't find how use the Class search criterion.
Anyway, I've decided search for every folders having the Custom1 and Custom2 that I'm searching for and check the class (it’s not cool but I thought that it would work).
The code that I'm using is:
ManStrings manStrings = new ManStrings();
manStrings.Add(imanSession.Databases.ItemByIndex(1).Name);
IManFolderSearchParameters imanFolderSearchparameters = imanDms.CreateFolderSearchParameters();
imanFolderSearchparameters.Add(imFolderAttributeID.imFolderCustom1,"MyCustom1");
imanFolderSearchparameters.Add(imFolderAttributeID.imFolderCustom2,"MyCustom2");
IManFolders imanFolders = imanSession.WorkArea.SearchFolders(manStrings, imanFolderSearchparameters);
and no folder is returned, but if I replace the FolderCustom criteria by
imanFolderSearchparameters.Add(imFolderAttributeID.imFolderName, "MyFolderName");
everything works fine.
Any help would be welcome
Thanks in advance
Find more posts tagged with
Comments
taibooz
You can not perform a profile search for a folder using SDK. You need to search for a workspace with custom1/custom2 as a search criteria than search this particular folder by searching folder name or folder id from within the workspace.