Skip to main content
cancel
Showing results for 
Search instead for 
Did you mean: 

Earn a 50% discount on the DP-600 certification exam by completing the Fabric 30 Days to Learn It challenge.

Reply

Microsoft Graph: List events

I am using the List Events endpoint in Power BI to pull all events for a single employee. I was able to setup a function to pull the data from each page, but only 20 events are appearing. Is the a limitation, or something may be missing to cause this outcome?

1 ACCEPTED SOLUTION
v-yiruan-msft
Community Support
Community Support

Hi @istduncan-cohp ,

First, please check if you have the sufficient permission to call this API. Then check if there are only 20 events that match the criteria you are using in your request. The Microsoft Graph API provides a List Events endpoint that allows you to retrieve a list of events for a single employee. This endpoint returns a maximum of 100 events per request. If you need to retrieve more than 100 events, you will need to make multiple requests, using the $skip and $top query parameters to page through the results. For example, to retrieve events 101-200, you would set $skip=100 and $top=100 in your request.  

List events - Microsoft Graph v1.0 | Microsoft Learn

Best Regards

Community Support Team _ Rena
If this post helps, then please consider Accept it as the solution to help the other members find it more quickly.

View solution in original post

1 REPLY 1
v-yiruan-msft
Community Support
Community Support

Hi @istduncan-cohp ,

First, please check if you have the sufficient permission to call this API. Then check if there are only 20 events that match the criteria you are using in your request. The Microsoft Graph API provides a List Events endpoint that allows you to retrieve a list of events for a single employee. This endpoint returns a maximum of 100 events per request. If you need to retrieve more than 100 events, you will need to make multiple requests, using the $skip and $top query parameters to page through the results. For example, to retrieve events 101-200, you would set $skip=100 and $top=100 in your request.  

List events - Microsoft Graph v1.0 | Microsoft Learn

Best Regards

Community Support Team _ Rena
If this post helps, then please consider Accept it as the solution to help the other members find it more quickly.

Helpful resources

Announcements
LearnSurvey

Fabric certifications survey

Certification feedback opportunity for the community.

PBI_APRIL_CAROUSEL1

Power BI Monthly Update - April 2024

Check out the April 2024 Power BI update to learn about new features.

April Fabric Community Update

Fabric Community Update - April 2024

Find out what's new and trending in the Fabric Community.