microsoftgraph / microsoftgraph/msgraph-sdk-java

Question - Page through a collection using the Microsoft Graph SDKs - v6.29.0

Open
#2,391 3 comments 0 reactions 0 assignees View on GitHub

Nobody has claimed this yet.

status:waiting-for-triage
Dominant language
Java
Stars
444
Forks
154
Avg merge
18h 28m
Merged PRs (30d)
4

Description

When passing through collection and readding the header to requestConfigurator of PageIterator.Builder
Do I need to add the header as encoded key or not
For example readding the select header
requestInfo.addQueryParameter("%24select", new String[]{"name", "displayName", "id", "webUrl", "isPersonalSite"});
or
requestInfo.addQueryParameter("$select", new String[]{"name", "displayName", "id", "webUrl", "isPersonalSite"});

According to the documentation in
https://learn.microsoft.com/en-us/graph/sdks/paging?tabs=java
it appeared it's needed to encode the key

Thanks,
Itay

Contributor guide

Open the contributing guide

First steps

  1. Read the whole issue, then the project's contributing guide.
  2. Comment on the issue to say you are picking it up — it saves two people doing the same work.
  3. Fork the repository and make your change on a branch.
  4. Open a pull request that references the issue number.

Research direction

Start with the Microsoft Graph paging documentation linked in the issue and the Java PageIterator.Builder requestConfigurator example. Compare the two requestInfo.addQueryParameter forms for the $select header, then document the correct form and update the relevant guidance if needed.

Written by the indexing model from the issue text.

Assessment

Tech stack
java
Domain
api
Issue type
Documentation
Difficulty
1/5
Estimated time
Under an hour
Activity status
Stale
Clarity
Needs clarification
Newbie friendliness
25/100

Get new issues in your inbox

A short digest of beginner-friendly GitHub issues.