The process of building custom applications and tools that interact with Microsoft SharePoint, including SharePoint Online in Microsoft 365.
Hi @Roel Plieger (Bossers & Cnossen BV)
Thank you for posting question to Microsoft Q&A forum.
Based on my research, custom columns added to the Site Pages is not part of the sitePage schema and therefore it will not return in the response.
sitePage resource type - Microsoft Graph v1.0 | Microsoft Learn
In conclusion, the /pages (or /pages/microsoft.graph.sitePage) endpoint does not support filtering on custom site/library columns (fields) added to the Site Pages library.
If getting custom fields is crucial, you can change your approach by query the site pages list directly. List items - Microsoft Graph v1.0 | Microsoft Learn
First, get the Site Pages list ID:
GET https://graph.microsoft.com/v1.0/sites/{site-id}/lists?$filter=displayName eq 'Site Pages'&$select=id,displayName
Query items with custom fields:
GET https://graph.microsoft.com/v1.0/sites/{site-id}/lists/{page-list-id}/
I hope this information helps.
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.