Skip to content
New issue

Have a question about this project? Sign up for a free GitHub account to open an issue and contact its maintainers and the community.

By clicking “Sign up for GitHub”, you agree to our terms of service and privacy statement. We’ll occasionally send you account related emails.

Already on GitHub? Sign in to your account

Cant use Skiptoken as a query parameter in TransitiveMembers #2158

Closed
CardinPatson opened this issue Oct 11, 2023 · 2 comments
Closed

Cant use Skiptoken as a query parameter in TransitiveMembers #2158

CardinPatson opened this issue Oct 11, 2023 · 2 comments

Comments

@CardinPatson
Copy link

CardinPatson commented Oct 11, 2023

Describe the bug

I cant use Skiptoken as a query parameter when i try to get group member with transitivemembers. Does anyone have already use Skiptoken as a query parameters ?

Expected behavior
Accept the Skiptoken as QueryParameters

Screenshots
image

Client version
5.29.0

Desktop (please complete the following information):

  • OS: Window 11
  • Version 22
@CardinPatson CardinPatson changed the title [Client bug]: Cant use Skiptoken as a query parameter in TransitiveMembers Cant use Skiptoken as a query parameter in TransitiveMembers Oct 11, 2023
@andrueastman
Copy link
Member

Thanks for raising this @CardinPatson

There is guidance on the same in the upgrade guide at the link below as how the entire url can be used.
https://github.com/microsoftgraph/msgraph-sdk-dotnet/blob/dev/docs/upgrade-to-v5.md#skiptoken-and-deltatoken-query-parameters-in-delta-requests

There is an alternative as well to use the WithUrl request builder as well.

var nextLinkUrl = "https://graph.microsoft.com/v1.0/"; //nextLink url from previous repsonse
var transitiveMembersResponse = await graphClient.Groups["{group-id}"].TransitiveMembers.WithUrl(nextLinkUrl).GetAsync();

@CardinPatson
Copy link
Author

Thanks for the alternative andrueastman, it works perfectly with withUrl, so im going to close this issue

Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment
Projects
None yet
Development

No branches or pull requests

2 participants