Hi Microsoft Support,
I’m encountering an inconsistency with the Microsoft Graph API when retrieving images from SharePoint posts. Here's the issue in detail:
API Workflow:
- Initial Request: I use the endpoint:
https://graph.microsoft.com/beta/sites/${pageId}/pages
to retrieve attributes related to SharePoint Pages.
Expected Response: In most cases, the response includes the siteId
, listId
, and uniqueId
attributes. I use these attributes in the subsequent request: https://graph.microsoft.com/v1.0/sites/${siteId}/lists/${listId}/items/${uniqueId}/driveitem
This normally allows me to access the uploaded images from the SharePoint posts.
Issue:
In some cases, when images are uploaded to SharePoint posts from a device, the siteId
, listId
, and uniqueId
attributes are not included in the API response. This happens even though the upload process is identical for both cases.
- Expected Behavior: The attributes
siteId
, listId
, and uniqueId
should always be present for images uploaded via the same method.
- Observed Behavior:
- Case 1: Uploading an image to a SharePoint post includes the expected attributes (
siteId
, listId
, uniqueId
).
- Case 2: Uploading an image in the same manner to another SharePoint post does not include the attributes.
Question:
Why is there inconsistency in retrieving these attributes for images uploaded to SharePoint posts? Is this a known issue or a limitation of the Graph API?
Any guidance or insights into resolving this issue would be greatly appreciated.