Skip to content
New issue

Have a question about this project? Sign up for a free GitHub account to open an issue and contact its maintainers and the community.

By clicking “Sign up for GitHub”, you agree to our terms of service and privacy statement. We’ll occasionally send you account related emails.

Already on GitHub? Sign in to your account

[SharePoint, Site Pages] Add parent library ID to parentReferences member #557

Open
heinrich-ulbricht opened this issue Jan 17, 2024 · 0 comments
Labels

Comments

@heinrich-ulbricht
Copy link

heinrich-ulbricht commented Jan 17, 2024

Context

When working with SharePoint lists and items different IDs are needed by different APIs. Site ID, Web ID, Item ID, Item Unique ID, relative URL etc.

There is the extreme convenient sharepointIds member that gets populated for some endpoints. But not for pages (beta API).

Observed behavior

The parentReference property of site pages only contains the siteId.

Example:

GET /beta/sites/6bbd66bf-79e9-4d81-a6a4-979be127794d/pages?$select=parentReference

image

Expected behavior

The parentReference property of site pages should contain the ID of the parent Site Pages library as well, if requested.

Ideal would be if the sharepointIds property of the parentReference would be populated:

image

For sites this is populated like so:

image

This shouldn't be returned by default, but upon request.

(I tried this, but get a 400: https://graph.microsoft.com/beta/sites/6bbd66bf-79e9-4d81-a6a4-979be127794d/pages?$select=parentReference,parentReference/sharepointIds. I also tried this, for single pages, as it works for sites, but does not: https://graph.microsoft.com/beta/sites/6bbd66bf-79e9-4d81-a6a4-979be127794d/pages/af4fca6a-6371-4a77-b1fb-e32c97cd7ba5/sharepointIds)

Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment
Labels
Projects
None yet
Development

No branches or pull requests

1 participant