⛔️ PROBLEM
You are trying to get booking businesses using GET request using Graph API but receive ErrorExceededFindCountLimit error.|Request --> GET https://graph.microsoft.com/beta/bookingBusinesses
Microsoft Graph API error ErrorExceededFindCountLimit
Error:
{
"error": {
"code": "ErrorExceededFindCountLimit",
"message":
"The GetBookingMailboxes request returned too many results. Please specify a query to limit the results.",
}
}
⚡️ ANALYSIS
Service account is setup in Azure AD with App Registration with necessary permissions - Bookings.Read.All, BookingsAppointment.ReadWrite.All, Bookings.ReadWrite.All, Bookings.Manage.All. But you receive error when executing the code.As the error states "returned too many results", the return values look to be beyond the set threshold. Getting the list of bookingBusinesses may also fail when an organization has several Bookings businesses and the account making the request is not an administrator.
⛏️ Fix ErrorExceededFindCountLimit error when querying bookingBusinesses using Microsoft Graph ?
Limit the request to return the set of businesses by including a query parameter. This will limit the result set and return the businesses that have given search text in their name or e-mail address.GET https://graph.microsoft.com/beta/bookingBusinesses?query=Code2Care
Using this approach, you can now pass the name or email id of the business that you want to query and fetch limited results.
More Posts related to Microsoft,
- Graph API error when querying BookingBusinesses - ErrorExceededFindCountLimit, The GetBookingMailboxes request returned too many results
- Error 50057 - User account is disabled. The account has been disabled by an administrator [Microsoft - Teams - Azure]
- Microsoft Edge Fix: ERR_TUNNEL_CONNECTION_FAILED
- Fix: Microsoft OneDrive We are currently experiencing technical difficulties
- Fix Microsoft Store Error Code: 0x80072EFD
- Microsoft Office Excel - Couldnt Open the Workbook - The workbook cannot be opened.
- 0xCAA20003: You ran into an authorization problem. [Microsoft]
- [Microsoft Teams 4c7] Modern authentication failed here, but you'll still be able to sign in. Your status code is 4c7 error
- Fix Error CAA50021 - Number of retry attempts exceeds expectation - Microsoft 365 Apps
- [Fix] Microsoft 53003 Error
- What is FCM Messages Test Notification! [Microsoft Teams] [Google Hangouts]
- You're not on Teams yet, but you can set it up for your organization. [Microsoft Teams Login Error]
- Remove mailto link from Microsoft 365 Word Document Email Text
- PowerShell git: The term git is not recognized as the name of a cmdlet
- How to activate and use Microsoft Teams Together mode
- Remove Possible Data Loss Message from Microsoft Excel
- How to turn off Dark theme in Excel for Mac
- Fix Microsoft Windows Update Error 80072EFE
- Fix Microsoft Office 365 error code 135011 - Your organization has disabled this device
- What is Microsoft 365 Message You are using more licenses on your trial than what you will purchase once the free trial ends.
- Lost your iPhone? Regenerate QR Code for Microsoft Authenticator App
- Customize Praise badge for Microsoft Teams with own images, values, brand
- Microsoft Stream - This may not be for you, It looks like you don't have permission to watch this video
- Microsoft 365 Excel - PRO TIP Discover insights quickly with Power BI, which is already included in your Microsoft services, See it in action
- What version of windows do I have?
More Posts:
- [Solved] Bootstrap tooltip not working - Bootstrap
- How to pip install Python Modules in VSCode - Python
- How to pass value to another Power Apps screen - PowerApps
- Create Nested Directories using Java Code - Java
- List of All 35 Reserved Keywords in Python Programming Language 3.11 - Python
- Your Android SDK is out of date or is missing templates. Please ensure you are using SDK version 22 or later. - Android
- How to change bash terminal prompt string and color - Linux
- Convert JSON to Java Collection Map using Jackson - Java