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.
Code: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);
Bookmarks