PDA

View Full Version : Filter/Search outlook address list



magicgavin
09-16-2010, 10:23 PM
The code below reads the Global Address List in Microsoft outlook.
How do I search the address list or filter out unwanted entries.

There are about 100,000 names in the list and I only want the ones that belong to a certain organization.




var ol = new ActiveXObject("Outlook.Application");
var session = ol.session;
var al = ol.session.addresslists("Global Address List");
var ae = al.addressEntries();
var out = new Array();
for (i=1;i<=ae.Count;i++){
out[i] = ae.item(i);
}
alert(out);