How does skip token take care of email deletion case Announcing the arrival of Valued Associate #679: Cesar Manara Planned maintenance scheduled April 23, 2019 at 23:30 UTC (7:30pm US/Eastern) Data science time! April 2019 and salary with experience The Ask Question Wizard is Live!Failed to update user profile with Microsoft Graph API via REST APIMicrosoft Graph API - 403 Forbidden for v1.0/me/eventsMicrosoft Graph: how to get Data from users of an organisation through web app?Skip token errors on Grpah APICall Graph API from MVC AppMicrosoft Graph Api : Insufficient privileges to complete the operationOneDrive - Correct Oauth, Scope, and Service Endpoint CombinationMicrosoft.Graph SDK SendMail As User - 400 - Unexpected Exception or Open navigation properties are not supportedAmbiguous ErrorQuotaExceeded message when using Microsoft Graph REST APIsMicrosoft Graph authentication fails on web API
What does Turing mean by this statement?
Strange behavior of Object.defineProperty() in JavaScript
Putting class ranking in CV, but against dept guidelines
An adverb for when you're not exaggerating
How do I find out the mythology and history of my Fortress?
How many time has Arya actually used Needle?
How does light 'choose' between wave and particle behaviour?
macOS: Name for app shortcut screen found by pinching with thumb and three fingers
Intuitive explanation of the rank-nullity theorem
Lagrange four-squares theorem --- deterministic complexity
Amount of permutations on an NxNxN Rubik's Cube
Co-worker has annoying ringtone
Does the Mueller report show a conspiracy between Russia and the Trump Campaign?
1-probability to calculate two events in a row
Most bit efficient text communication method?
Random body shuffle every night—can we still function?
How to identify unknown coordinate type and convert to lat/lon?
How would a mousetrap for use in space work?
Significance of Cersei's obsession with elephants?
Is it possible for SQL statements to execute concurrently within a single session in SQL Server?
What is an "asse" in Elizabethan English?
How does the math work when buying airline miles?
What does it mean that physics no longer uses mechanical models to describe phenomena?
preposition before coffee
How does skip token take care of email deletion case
Announcing the arrival of Valued Associate #679: Cesar Manara
Planned maintenance scheduled April 23, 2019 at 23:30 UTC (7:30pm US/Eastern)
Data science time! April 2019 and salary with experience
The Ask Question Wizard is Live!Failed to update user profile with Microsoft Graph API via REST APIMicrosoft Graph API - 403 Forbidden for v1.0/me/eventsMicrosoft Graph: how to get Data from users of an organisation through web app?Skip token errors on Grpah APICall Graph API from MVC AppMicrosoft Graph Api : Insufficient privileges to complete the operationOneDrive - Correct Oauth, Scope, and Service Endpoint CombinationMicrosoft.Graph SDK SendMail As User - 400 - Unexpected Exception or Open navigation properties are not supportedAmbiguous ErrorQuotaExceeded message when using Microsoft Graph REST APIsMicrosoft Graph authentication fails on web API
.everyoneloves__top-leaderboard:empty,.everyoneloves__mid-leaderboard:empty,.everyoneloves__bot-mid-leaderboard:empty height:90px;width:728px;box-sizing:border-box;
So the skip token I get from graph API is a number, based on my understanding(I might be wrong), it indicates how many emails need to be skipped.
In our application, we store that skip token in our db/memory so we can fetch next page of emails. So if say a users current skip token is 100, and before we send a request to the server with skip token 100, that user delete 10 emails, then what gonna happen if still use that 100 skip token?
Since I am not sure how to deal with this kind of user delete emails case, the way our application works is: we always do a minus on the skip token(like -10), and check if we can find any email or timestamp overlap between current response and previous response, if there is no overlap, we do another minus to the skip token. It is kind of like walk backward. We stop doing minus till we can find an overlap.
Does it make sense? So far, I noticed some skip tokens's responses give nextLink as null while there are still new emails in user's inbox. Also, we missed a couple of emails for around half year(meaning that the email is in user's inbox but not fetched by our application).
microsoft-graph microsoft-graph-mail
add a comment |
So the skip token I get from graph API is a number, based on my understanding(I might be wrong), it indicates how many emails need to be skipped.
In our application, we store that skip token in our db/memory so we can fetch next page of emails. So if say a users current skip token is 100, and before we send a request to the server with skip token 100, that user delete 10 emails, then what gonna happen if still use that 100 skip token?
Since I am not sure how to deal with this kind of user delete emails case, the way our application works is: we always do a minus on the skip token(like -10), and check if we can find any email or timestamp overlap between current response and previous response, if there is no overlap, we do another minus to the skip token. It is kind of like walk backward. We stop doing minus till we can find an overlap.
Does it make sense? So far, I noticed some skip tokens's responses give nextLink as null while there are still new emails in user's inbox. Also, we missed a couple of emails for around half year(meaning that the email is in user's inbox but not fetched by our application).
microsoft-graph microsoft-graph-mail
add a comment |
So the skip token I get from graph API is a number, based on my understanding(I might be wrong), it indicates how many emails need to be skipped.
In our application, we store that skip token in our db/memory so we can fetch next page of emails. So if say a users current skip token is 100, and before we send a request to the server with skip token 100, that user delete 10 emails, then what gonna happen if still use that 100 skip token?
Since I am not sure how to deal with this kind of user delete emails case, the way our application works is: we always do a minus on the skip token(like -10), and check if we can find any email or timestamp overlap between current response and previous response, if there is no overlap, we do another minus to the skip token. It is kind of like walk backward. We stop doing minus till we can find an overlap.
Does it make sense? So far, I noticed some skip tokens's responses give nextLink as null while there are still new emails in user's inbox. Also, we missed a couple of emails for around half year(meaning that the email is in user's inbox but not fetched by our application).
microsoft-graph microsoft-graph-mail
So the skip token I get from graph API is a number, based on my understanding(I might be wrong), it indicates how many emails need to be skipped.
In our application, we store that skip token in our db/memory so we can fetch next page of emails. So if say a users current skip token is 100, and before we send a request to the server with skip token 100, that user delete 10 emails, then what gonna happen if still use that 100 skip token?
Since I am not sure how to deal with this kind of user delete emails case, the way our application works is: we always do a minus on the skip token(like -10), and check if we can find any email or timestamp overlap between current response and previous response, if there is no overlap, we do another minus to the skip token. It is kind of like walk backward. We stop doing minus till we can find an overlap.
Does it make sense? So far, I noticed some skip tokens's responses give nextLink as null while there are still new emails in user's inbox. Also, we missed a couple of emails for around half year(meaning that the email is in user's inbox but not fetched by our application).
microsoft-graph microsoft-graph-mail
microsoft-graph microsoft-graph-mail
asked Mar 8 at 21:57
CipherTextCipherText
134
134
add a comment |
add a comment |
1 Answer
1
active
oldest
votes
The Delta Query (Track Changes) API might be better suited for your needs. It effectively allows you to keep a "bookmark" in a change log of someones inbox.
E.g. Instead of keeping the skip token you would keep the deltaLink you get back from calling /messages/delta
. When you call the API again with the deltaLink you will get a set of changes back since the last time you called the API + a new deltaLink. This allows you to keep "in sync" with the changes going on in the inbox you are monitoring.
The API reference docs are here:
https://docs.microsoft.com/en-us/graph/delta-query-overview
Thanks for your reply! Delta link sounds cool. But do you know if there is a way to convert our current skip token to delta link? So we can do a seamless migration to delta link.
– CipherText
Mar 11 at 20:21
No, I dont believe that is possible. DeltaLinks and Skip tokens should be treated as opaque so i dont think there is a way to convert them sorry. I could be wrong about that.
– Chris Johnson
Mar 12 at 17:01
add a comment |
Your Answer
StackExchange.ifUsing("editor", function ()
StackExchange.using("externalEditor", function ()
StackExchange.using("snippets", function ()
StackExchange.snippets.init();
);
);
, "code-snippets");
StackExchange.ready(function()
var channelOptions =
tags: "".split(" "),
id: "1"
;
initTagRenderer("".split(" "), "".split(" "), channelOptions);
StackExchange.using("externalEditor", function()
// Have to fire editor after snippets, if snippets enabled
if (StackExchange.settings.snippets.snippetsEnabled)
StackExchange.using("snippets", function()
createEditor();
);
else
createEditor();
);
function createEditor()
StackExchange.prepareEditor(
heartbeatType: 'answer',
autoActivateHeartbeat: false,
convertImagesToLinks: true,
noModals: true,
showLowRepImageUploadWarning: true,
reputationToPostImages: 10,
bindNavPrevention: true,
postfix: "",
imageUploader:
brandingHtml: "Powered by u003ca class="icon-imgur-white" href="https://imgur.com/"u003eu003c/au003e",
contentPolicyHtml: "User contributions licensed under u003ca href="https://creativecommons.org/licenses/by-sa/3.0/"u003ecc by-sa 3.0 with attribution requiredu003c/au003e u003ca href="https://stackoverflow.com/legal/content-policy"u003e(content policy)u003c/au003e",
allowUrls: true
,
onDemand: true,
discardSelector: ".discard-answer"
,immediatelyShowMarkdownHelp:true
);
);
Sign up or log in
StackExchange.ready(function ()
StackExchange.helpers.onClickDraftSave('#login-link');
);
Sign up using Google
Sign up using Facebook
Sign up using Email and Password
Post as a guest
Required, but never shown
StackExchange.ready(
function ()
StackExchange.openid.initPostLogin('.new-post-login', 'https%3a%2f%2fstackoverflow.com%2fquestions%2f55071563%2fhow-does-skip-token-take-care-of-email-deletion-case%23new-answer', 'question_page');
);
Post as a guest
Required, but never shown
1 Answer
1
active
oldest
votes
1 Answer
1
active
oldest
votes
active
oldest
votes
active
oldest
votes
The Delta Query (Track Changes) API might be better suited for your needs. It effectively allows you to keep a "bookmark" in a change log of someones inbox.
E.g. Instead of keeping the skip token you would keep the deltaLink you get back from calling /messages/delta
. When you call the API again with the deltaLink you will get a set of changes back since the last time you called the API + a new deltaLink. This allows you to keep "in sync" with the changes going on in the inbox you are monitoring.
The API reference docs are here:
https://docs.microsoft.com/en-us/graph/delta-query-overview
Thanks for your reply! Delta link sounds cool. But do you know if there is a way to convert our current skip token to delta link? So we can do a seamless migration to delta link.
– CipherText
Mar 11 at 20:21
No, I dont believe that is possible. DeltaLinks and Skip tokens should be treated as opaque so i dont think there is a way to convert them sorry. I could be wrong about that.
– Chris Johnson
Mar 12 at 17:01
add a comment |
The Delta Query (Track Changes) API might be better suited for your needs. It effectively allows you to keep a "bookmark" in a change log of someones inbox.
E.g. Instead of keeping the skip token you would keep the deltaLink you get back from calling /messages/delta
. When you call the API again with the deltaLink you will get a set of changes back since the last time you called the API + a new deltaLink. This allows you to keep "in sync" with the changes going on in the inbox you are monitoring.
The API reference docs are here:
https://docs.microsoft.com/en-us/graph/delta-query-overview
Thanks for your reply! Delta link sounds cool. But do you know if there is a way to convert our current skip token to delta link? So we can do a seamless migration to delta link.
– CipherText
Mar 11 at 20:21
No, I dont believe that is possible. DeltaLinks and Skip tokens should be treated as opaque so i dont think there is a way to convert them sorry. I could be wrong about that.
– Chris Johnson
Mar 12 at 17:01
add a comment |
The Delta Query (Track Changes) API might be better suited for your needs. It effectively allows you to keep a "bookmark" in a change log of someones inbox.
E.g. Instead of keeping the skip token you would keep the deltaLink you get back from calling /messages/delta
. When you call the API again with the deltaLink you will get a set of changes back since the last time you called the API + a new deltaLink. This allows you to keep "in sync" with the changes going on in the inbox you are monitoring.
The API reference docs are here:
https://docs.microsoft.com/en-us/graph/delta-query-overview
The Delta Query (Track Changes) API might be better suited for your needs. It effectively allows you to keep a "bookmark" in a change log of someones inbox.
E.g. Instead of keeping the skip token you would keep the deltaLink you get back from calling /messages/delta
. When you call the API again with the deltaLink you will get a set of changes back since the last time you called the API + a new deltaLink. This allows you to keep "in sync" with the changes going on in the inbox you are monitoring.
The API reference docs are here:
https://docs.microsoft.com/en-us/graph/delta-query-overview
answered Mar 9 at 1:22
Chris JohnsonChris Johnson
721311
721311
Thanks for your reply! Delta link sounds cool. But do you know if there is a way to convert our current skip token to delta link? So we can do a seamless migration to delta link.
– CipherText
Mar 11 at 20:21
No, I dont believe that is possible. DeltaLinks and Skip tokens should be treated as opaque so i dont think there is a way to convert them sorry. I could be wrong about that.
– Chris Johnson
Mar 12 at 17:01
add a comment |
Thanks for your reply! Delta link sounds cool. But do you know if there is a way to convert our current skip token to delta link? So we can do a seamless migration to delta link.
– CipherText
Mar 11 at 20:21
No, I dont believe that is possible. DeltaLinks and Skip tokens should be treated as opaque so i dont think there is a way to convert them sorry. I could be wrong about that.
– Chris Johnson
Mar 12 at 17:01
Thanks for your reply! Delta link sounds cool. But do you know if there is a way to convert our current skip token to delta link? So we can do a seamless migration to delta link.
– CipherText
Mar 11 at 20:21
Thanks for your reply! Delta link sounds cool. But do you know if there is a way to convert our current skip token to delta link? So we can do a seamless migration to delta link.
– CipherText
Mar 11 at 20:21
No, I dont believe that is possible. DeltaLinks and Skip tokens should be treated as opaque so i dont think there is a way to convert them sorry. I could be wrong about that.
– Chris Johnson
Mar 12 at 17:01
No, I dont believe that is possible. DeltaLinks and Skip tokens should be treated as opaque so i dont think there is a way to convert them sorry. I could be wrong about that.
– Chris Johnson
Mar 12 at 17:01
add a comment |
Thanks for contributing an answer to Stack Overflow!
- Please be sure to answer the question. Provide details and share your research!
But avoid …
- Asking for help, clarification, or responding to other answers.
- Making statements based on opinion; back them up with references or personal experience.
To learn more, see our tips on writing great answers.
Sign up or log in
StackExchange.ready(function ()
StackExchange.helpers.onClickDraftSave('#login-link');
);
Sign up using Google
Sign up using Facebook
Sign up using Email and Password
Post as a guest
Required, but never shown
StackExchange.ready(
function ()
StackExchange.openid.initPostLogin('.new-post-login', 'https%3a%2f%2fstackoverflow.com%2fquestions%2f55071563%2fhow-does-skip-token-take-care-of-email-deletion-case%23new-answer', 'question_page');
);
Post as a guest
Required, but never shown
Sign up or log in
StackExchange.ready(function ()
StackExchange.helpers.onClickDraftSave('#login-link');
);
Sign up using Google
Sign up using Facebook
Sign up using Email and Password
Post as a guest
Required, but never shown
Sign up or log in
StackExchange.ready(function ()
StackExchange.helpers.onClickDraftSave('#login-link');
);
Sign up using Google
Sign up using Facebook
Sign up using Email and Password
Post as a guest
Required, but never shown
Sign up or log in
StackExchange.ready(function ()
StackExchange.helpers.onClickDraftSave('#login-link');
);
Sign up using Google
Sign up using Facebook
Sign up using Email and Password
Sign up using Google
Sign up using Facebook
Sign up using Email and Password
Post as a guest
Required, but never shown
Required, but never shown
Required, but never shown
Required, but never shown
Required, but never shown
Required, but never shown
Required, but never shown
Required, but never shown
Required, but never shown