Home All Groups Group Topic Archive Search About

How can I get Query based distribution lists?

Author
24 Nov 2004 2:53 PM
Mark Rubacky
I have to build a cache of all the distribution lists on a system.  Currently
I enumerate through the Global Address Book and find all the items that of
are of PR_OBJECT_TYPE = MAPI_DISTLIST.  When I do this the Query Based
distribution list is marked as a PR_OBJECT_TYPE = MAPI_MAILUSER.  How do I
find Query based distribution lists in the GAL?


Mark Rubacky

Author
9 Dec 2004 2:55 AM
Muthu
Can u pls tell me what u mean by Query based Distribution Lists?

As of your current idea of enumerating and checking for the PR_OBJECT_TYPE =
MAPI_DISTLIST property, you can do this by setting a filter when you do the
HrQueryAllRows or QueryRows. I mean by using SRestriction structure. This
will help in reducing the number of results..

Rgds
Muthu

Show quoteHide quote
"Mark Rubacky" wrote:

> I have to build a cache of all the distribution lists on a system.  Currently
> I enumerate through the Global Address Book and find all the items that of
> are of PR_OBJECT_TYPE = MAPI_DISTLIST.  When I do this the Query Based
> distribution list is marked as a PR_OBJECT_TYPE = MAPI_MAILUSER.  How do I
> find Query based distribution lists in the GAL?
>
>
> Mark Rubacky

Bookmark and Share