Feat: Add Delta Messages Feature #104
Merged
Add this suggestion to a batch that can be applied as a single commit.
This suggestion is invalid because no changes were made to the code.
Suggestions cannot be applied while the pull request is closed.
Suggestions cannot be applied while viewing a subset of changes.
Only one suggestion per line can be applied in a batch.
Add this suggestion to a batch that can be applied as a single commit.
Applying suggestions on deleted lines is not supported.
You must change the existing code in this line in order to create a valid suggestion.
Outdated suggestions cannot be applied.
This suggestion has been applied or marked resolved.
Suggestions cannot be applied from pending reviews.
Suggestions cannot be applied on multi-line comments.
Suggestions cannot be applied while the pull request is queued to merge.
Suggestion cannot be applied right now. Please check back later.
Introduction
This PR, aim to add the
deltafeature into the Email Messages in order to improve the performance for certain calls.Delta Function From Microsoft Documentation:
Use Cases
You can use the delta method, if you want fast response time, and fetch only the messages (emails) has been recently modified, or created.
You can use the feature as follows
Before:
Now:
Also this can be used with
MsGraphAdminQuery Params:
$deltatoken@odata.deltaLinkURL of the previous delta function call for the same message collection, indicating the completion of that round of change tracking. Save and apply the entire@odata.deltaLinkURL including this token in the first request of the next round of change tracking for that collection.$skiptoken@odata.nextLinkURL of the previous delta function call, indicating there are further changes to be tracked in the same message collection.changeTypecreated,updated, ordeleted.Limitation
$searchQuery Param is not supported$filteronly works with$filter=receivedDateTime+ge+{value}or$filter=receivedDateTime+gt+{value}$orderbyonly supports$orderby=receivedDateTime+descReferences
For more info, about the API. Check: https://learn.microsoft.com/en-us/graph/api/message-delta?view=graph-rest-1.0&tabs=php