vba - ms outlook 2013 addressentry ID is not unique -


everything read ms outlook says addressentry.id unique. mine don't appear be.

here's code:

dim anaddressentry addressentry dim listuniqueid string dim lastlistunique string dim kount integer lastlistunique = "none" kount = 1 20     each anaddressentry in session.addresslists.item(2).addressentries         if anaddressentry.name = "testcontactgroup"             listuniqueid = anaddressentry.id             if lastlistunique <> "none"                 if lastlistunique <> listuniqueid                     stop                 end if             end if             lastlistunique = listuniqueid         end if     next next 

it runs same routine 20 times goes through contacts , looks name "testcontactgroup" gets it's addressentry.id. if isn't first time, compares last addressentry.id got contact.

if aren't same, stops. understand it, should same.

they're close same, except last few characters.

here 2 values id same address entry

00000000fe42aa0a18c71a10e8850b651c2400000300000005000000ff000000180000000000000058d0304a0573a945bd70d6fba5d114fac416a000000090

00000000fe42aa0a18c71a10e8850b651c2400000300000005000000ff000000180000000000000058d0304a0573a945bd70d6fba5d114fac416a00060209b

any suggestions?

thanks

bob

that entry id refers contact in 1 of contacts folders. includes (besides few flags) email kind (email1, email2, fax, etc.). , entry id of corresponding ipm.contact message (contactitem object).

you should never directly compare entry ids - namespace.compareentryids for: multiple entry ids can refer same object.


Comments

Popular posts from this blog

Android layout hidden on keyboard show -

google app engine - 403 Forbidden POST - Flask WTForms -

c - Why would PK11_GenerateRandom() return an error -8023? -