What should we do when encountering a Graph API response page for the second time in the same pull?

Andrew H 0 Reputation points
2023-08-31T19:02:24.1733333+00:00

User's image

I have found that some Graph API nextPageLink URLs recur when pulling pages. What is the recommended way to handle this situation? Should I keep pulling, or stop, or do something else?

Code for loop detection looks like this.

var loopDetection = new HashSet<string>
Microsoft Graph
Microsoft Graph
A Microsoft programmability model that exposes REST APIs and client libraries to access data on Microsoft 365 services.
2,060 questions
0 comments No comments
{count} votes