Forum Discussion
Ross_Phillips
Nov 30, 2023Copper Contributor
How can I get more than the first 10 Event entries returned
I have tried with and without the $top= parm and also with a higher and lower value than 10 but only the first 10 events for the account are ever returned.
I would like to get a list of all the events returned. What do I need to change to get a list of all the events for the mailbox?
$Events= “https://graph.microsoft.com/v1.0/users/email address removed for privacy reasons/calendar/events?$top=100&$select=Subject,Start,Attendees,End,Organizer,id.recurrence"
(Invoke-RestMethod -Headers @{Authorization = "Bearer $($token)"} -Uri $Events -Method Get).value.id
-Ross
No RepliesBe the first to reply