Mar 03 2019 05:09 PM
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:
Mar 06 2019 11:45 AM
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
Mar 06 2019 12:07 PM
There are more than 20 alerts. It is the sample dataset from the Hackathon
Mar 06 2019 12:19 PM
Mar 06 2019 12:35 PM
so if I do $top=50 - in theory if there are 50 providers - I could get back 2500 alerts ( pass the total alerts allowed to be returned). I did not know that the $top was specific to the Provider - is that in the documentation?
Mar 06 2019 01:35 PM
Yes that is correct you would get back 2500 alerts. $top is documented in the List alerts page, but we may need to clarify that.