Forum Discussion
FrankG
Mar 04, 2019Copper Contributor
Paging
To perform paging with the Graph API you are supposed to check for the: @odata:nextLink property in the results. This property will not appear if you set $top=12 or greater. $top=11 or smaller will return the nextLink property. You can test in the Graph Explorer.
This will not return the nextLink property:
This will return the nextLink property:
- Edward Koval
Microsoft
Hi Frank,
The Microsoft Graph Security API will not return a next link when no additional alerts can be returned, or if you have reached the 6000 top+skip limit. In this case you are using our demo data, where we currently have 11 demo alerts for one of the providers. Which is why after $top=11 you no longer receive a next link.
Thanks,
Edward
- FrankGCopper Contributor
There are more than 20 alerts. It is the sample dataset from the Hackathon
- Edward Koval
Microsoft
Yes, $top returns the most recent alerts from each of our providers. So if you were to query the sample dataset for $top=1, you would get back 8 alerts. Because we currently have 8 providers returning 1 of their most recent alerts.