Retrieve pstn call

Kinatyan 20 Reputation points
2025-08-06T09:03:49.97+00:00

I am attempting to retrieve PSTN call records using the Microsoft Graph Java SDK with the goal of limiting the result set to the top 10 records.

The generated request URL is:

https://graph.microsoft.com/v1.0/communications/callRecords/microsoft.graph.callRecords.getPstnCalls

This URL appears to be correctly formed, and the $top=10 parameter is properly encoded and appended. However, the response contains all available records, and the odataNextLink property is null, indicating that pagination is not being applied.

My objective is to retrieve only the top 10 PSTN call records within the specified date range. I would appreciate any insights into

Microsoft Teams | Development
{count} votes

1 answer

Sort by: Most helpful
  1. Kudos-Ng 2,885 Reputation points Microsoft External Staff Moderator
    2025-08-06T09:51:35.4666667+00:00

    Hi Kinatyan

    Thank you for posting your question in the Microsoft Q&A forum. 

    Based on the information you provided, I’ve conducted some research and would like to share a few insights that may help clarify the behavior you're experiencing. 

    While the $top query parameter is widely supported across many Microsoft Graph endpoints to limit the number of results returned, it does not apply universally. According to Microsoft’s official documentation on Paging Microsoft Graph data in your app - Microsoft Graph | Microsoft Learn, certain endpoints may not support all paging query parameters as expected. 

    undefined

    In this case, it appears that the getPstnCalls endpoint under callRecords might be subject to such a limitation. I came across a similar issue reported by another developer on Stack Overflow: microsoft graph call records get pstn - won't honor top 10 limit - Stack Overflow 

    Note: Microsoft provides this external link as a convenience. These sites are not controlled by Microsoft, and no representations are made regarding the quality, safety, or suitability of any software or information found there. Please ensure you fully understand the risks before applying any suggestions from the link above. 

    I hope the information provided is helpful. Please let me know if you have any further questions. 


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

    Note: Please follow the steps in our documentation to enable e-mail notifications if you want to receive the related email notification for this thread. 


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.