Get Distribution List From Outlook Via Javascript
In Outlook, I have 7 Groups where my email id. I need to get the group names (only name of the group not members of the group) where my email id. Group Names are: 'Team A', 'Team B
Solution 1:
Firstly, all collections in OOM are 1 based, not 0.
Secondly, your "test" variable is an int, so test[i]
makes no sense.
Thirdly, you can use a much simpler loop:
var dl = outLookApp.Session.CurrentUser.AddressEntry.GetExchangeUser().GetMemberOfList();
for (var i = 1 ; i < dl.count; i++)
{
alert(dl.Item(i + 1).Name);
}
Post a Comment for "Get Distribution List From Outlook Via Javascript"