Skip to content

How to use nextLink and deltaLink #533

Closed Answered by baywet
maxklav asked this question in Q&A
Discussion options

You must be logged in to vote

I think there are multiple confusions in the last code example you've provided.

First off

req := client.Users().ByUserId(userID).MailFolders()

is not a delta endpoint but just the regular list endpoint, it will never return a delta link and should be instead

req := client.Users().ByUserId(userID).MailFolders().Delta()

(the request configuration and query parameters need to be updated accordingly)

Then, it's not models.CreateMailFolderCollectionResponseFromDiscriminatorValue that should be used for deserialization but users.CreateItemMailFoldersDeltaResponseFromDiscriminatorValue https://github.com/microsoftgraph/msgraph-sdk-go/blob/3280bd480cad4749ddd7c00a6310f74c3b3ce529/users/item_mail_…

Replies: 2 comments 11 replies

Comment options

You must be logged in to vote
10 replies
@baywet
Comment options

@maxklav
Comment options

@luigi-fast
Comment options

@baywet
Comment options

Answer selected by baywet
@luigi-fast
Comment options

Comment options

You must be logged in to vote
1 reply
@baywet
Comment options

Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment
Category
Q&A
Labels
None yet
4 participants