This is the requirement:
Say, we have 10 departments and 6 document types as attributes. For counting the documents for each document type and department, we have to build up loops to go over all the departments and document types which is 10 x 6 = 60 loops. Here are the codes:
...
foreach (string dept in departments)
{
foreach (string doctype in documentTypes)
{
......
query =string.Format( "where1=Attr_3870107_5:(=\"{0}\")&boolean2=and&where2=Attr_3870107_6:(=\"{1}\")", dept.Name, docType.Name);
request.ResultSetSpec = query;
SingleSearchResponse rs = svcClient.Search(svcOTAuth, request, encoding);
count = rs.Results.ListDescription.ActualCount;
....
}
}
The question is, do we have to make 60 requests to the search web service to get the count or these is a better way? You know, making 60 requests to Livelink sucks. Can we do just one request to get this done?
Any idea and suggestion will be much appreciated.