Home > Enterprise >  is MailIten.EntryID unque for each user of shared mailbox?
is MailIten.EntryID unque for each user of shared mailbox?

Time:08-11

The problem is - we've got a shared mailbox with multiple operators, collecting and inserting in ERP sales orders. And there got a problem, that the one order from e-mail can be picked by different operators and be duplicated in ERP. Each e-mail has unique EntryID, but reading docs, I can't understand if it is the same for all users of shared mailbox or for each user there is created it's own EntryID If it's the same for all, I could make a log in shared file and check if it's done or not by Entry ID. If not - have no idea :)

CodePudding user response:

The EntryID property value should be unique in the profile. And here is what MS states:

A MAPI store provider assigns a unique ID string when an item is created in its store. Therefore, the EntryID property is not set for a Microsoft Outlook item until it is saved or sent. The EntryID changes when an item is moved into another store, for example, from your Inbox to a Microsoft Exchange Server public folder, or from one Personal Folders (.pst) file to another .pst file. Solutions should not depend on the EntryID property to be unique unless items will not be moved.

And here is more information for the long-term EntryID values:

Long-term entry identifiers must be unique across all message stores in the active profile; therefore, when a message or folder is copied from one message store to another, it must be assigned a new entry identifier. When a message store object is moved, the message store provider that implements the move determines whether the original entry identifier will remain valid. Some service providers assign new entry identifiers to moved objects; others do not. If there is a change, the new entry identifier will be included in the information passed to clients when they are notified of the move.

CodePudding user response:

It will be unique, but keep in mind that different entry ids can refer to the same message - it can depend on whether it was retrieved from the folder contents table (short term vs long term entry id), primary vs delegate mailbox, etc. Entry ids cannot be directly compared, you need to use Namespace.CompareEntryIDs.

  • Related