List mailbox message rules endpoint pagination

Aaron-6199 0 Reputation points
2024-10-17T11:37:53.1633333+00:00

Is there any pagination on the list rules endpoint?

https://zcusa.951200.xyz/en-us/graph/api/mailfolder-list-messagerules?view=graph-rest-1.0&tabs=http

I've tried using the optional query parameter ?$top=5 which it says it supports but it doesn't seem to work.

Is there a point where the response becomes paginated or does the response always return every rule?

I've tried adding 300+ rules to create a 10 KB response and it still returns every rule.

Are there response size limits which are related to the Inbox rules quotas? i.e. 32 KB to 256 KB. https://zcusa.951200.xyz/en-us/exchange/clients-and-mobile-in-exchange-online/outlook-on-the-web/increase-the-space-used-by-inbox-rules

Any information would be much appreciated.

Microsoft Graph
Microsoft Graph
A Microsoft programmability model that exposes REST APIs and client libraries to access data on Microsoft 365 services.
12,139 questions
{count} votes

1 answer

Sort by: Most helpful
  1. Yakun Huang-MSFT 5,490 Reputation points Microsoft Vendor
    2024-10-18T02:46:07.3766667+00:00

    Hello Aaron-6199,

    Thank you for reaching out to Microsoft Support!

    After testing, the $top query parameter did not work when requesting the List rules endpoint, and some of the other parameters did not work, not as described in the documentation, so I suggest you click here to give feedback.

    Hope this helps.

    If the answer is helpful, please click Accept Answer and kindly upvote it. If you have any further questions about this answer, please click Comment.

    0 comments No comments

Your answer

Answers can be marked as Accepted Answers by the question author, which helps users to know the answer solved the author's problem.