amir Posted May 20, 2008 Share Posted May 20, 2008 I know how to search the contacts folder, but how can i search the "Global Address List"? I tried to shoot in the dark with this code, but it doesn't work.... any ideas? $OutlookApplication = ObjCreate ( "Outlook.Application" ) $OutlookNamespace = $OutlookApplication.GetNamespace("MAPI") $OutlookContacts = $OutlookNamespace.AddressLists("Global Address List") ;This line is where the script fail.... $OutlookContact = $OutlookContacts.Items.Find('[FirstName] = "John"' ) If IsObj( $OutlookContact) Then MsgBox ( 0 , "Debug" , "Found" ) Else MsgBox ( 0 , "Debug" , "Not Found" ) EndIf Link to comment Share on other sites More sharing options...
amir Posted May 22, 2008 Author Share Posted May 22, 2008 Well, I decided to try a different approach, instead of accessing the global address list via an outlook object, i get what i need from the "Active Directory".See my post at:http://www.autoitscript.com/forum/index.php?showtopic=71778 Link to comment Share on other sites More sharing options...
Recommended Posts
Create an account or sign in to comment
You need to be a member in order to leave a comment
Create an account
Sign up for a new account in our community. It's easy!
Register a new accountSign in
Already have an account? Sign in here.
Sign In Now