Navigating the 12 Lookup Column Limitation in Microsoft Graph API for SharePoint List Items
Introduction:
When working with the Microsoft Graph REST API to retrieve data from SharePoint lists, it's essential to be aware of certain limitations. One such limitation involves the number of lookup columns that can be viewed in the API responses.
Limitation: Viewing Only 12 Lookup Columns:
The limitation in question involves the maximum number of lookup columns that can be included in the response when querying for site list items using the Microsoft Graph API. Currently, only the first 12 lookup columns are visible in the API response.
Implications and Workarounds:
If your SharePoint list includes more than 12 lookup columns, you may encounter limitations when trying to retrieve all related data using Microsoft Graph API. In such cases, you might need to use the COZYROC reusable script as a workaround to retrieve data for each list item separately using the endpoint here.