SyncFolderItem EWS operation on a public folder returns different item id for same item depending on item properties fetched

nyacharya 21 Reputation points
2021-02-22T11:46:17.27+00:00

Perform the following on an Exchange Online deployment -

  1. Create a Primary and Secondary public folder mailbox, with a folder on each of the mailbox. Powershell will have to be used to create such a folder.
  2. Using impersonated access, call SyncFolderItems EWS operation for a folder residing on the primary mailbox. Make sure to use a user which has its PublicFolderInformation property (from GetUserSettings operation) configured to secondary public folder mailbox.
  3. For the first time fetch only ids, for the second time fetch ids and subject.

It was noticed that the ids returned for the same item differ based on the item properties fetched in the item shape attribute. The same behavior does not occur for FindItems EWS operation.

Server Version Info returned
MajorVersion="15"
MinorVersion="20"
MajorBuildNumber="3868"
MinorBuildNumber="33"
Version="V2018_01_08"

Can someone let me know, what could be wrong?

Exchange Server Development
Exchange Server Development
Exchange Server: A family of Microsoft client/server messaging and collaboration software.Development: The process of researching, productizing, and refining new or existing technologies.
518 questions
{count} votes