Convert SyncState(EWS) to Delta(Graph)

Gabriel Roy 16 Reputation points
2022-09-07T18:40:18.007+00:00

Hi!

We are changing from EWS to Graph to read a mailbox.
On EWS we used SyncFolderItems operation, with the SyncState (https://learn.microsoft.com/en-us/exchange/client-developer/web-service-reference/syncfolderitems-operation)
On Graph we use message, with delta (https://learn.microsoft.com/en-us/graph/api/message-delta?view=graph-rest-1.0&tabs=http)

The problem is converting the SyncState to delta.
When the user calls our service, he gives us the last SyncState he had and we give him back the new one after we called SyncFolderId. Now that we are using Graph, the user syncState is not a valid id for the delta, and we need to know where he was at his last reading.

Is there any way to convert SyncState to delta? We don't want the user to read the same messages twice, or to miss some.

Thanks!

Microsoft Graph
Microsoft Graph
A Microsoft programmability model that exposes REST APIs and client libraries to access data on Microsoft 365 services.
10,592 questions
Exchange Server Management
Exchange Server Management
Exchange Server: A family of Microsoft client/server messaging and collaboration software.Management: The act or process of organizing, handling, directing or controlling something.
7,350 questions
0 comments No comments
{count} votes