'Microsoft Graph - Message center receive more the 100 object

I'm writing an application integration which message center I need to display all of them but receive only 100.

API endpoint:

GET https://graph.microsoft.com/v1.0/admin/serviceAnnouncement/messages

Official docs

Is there any option to get all of the messages?



Solution 1:[1]

As mentioned in the doc:

The response is paginated and each page contains 100 objects.

Anyway, you can try to use the $top query parameter to specify the page size of the result set.

GET https://graph.microsoft.com/v1.0/admin/serviceAnnouncement/messages?$top=1000

Resources:

Paging

Sources

This article follows the attribution requirements of Stack Overflow and is licensed under CC BY-SA 3.0.

Source: Stack Overflow

Solution Source
Solution 1 user2250152