SharePoint / SharePoint/sp-dev-docs
Clarification needed for SPFile vs SPListItem entries and ListItem Id property in manifest XML
@Ashlesha-MSFT is already working on this.
Since Feb 6, 2026.
- Dominant language
- PowerShell
- Stars
- 1.4k
- Forks
- 1.1k
- Avg merge
- 4d 12h
- Merged PRs (30d)
- 12
Description
What type of issue is this?
Question
What SharePoint development model, framework, SDK or API is this about?
SharePoint REST API
Target SharePoint environment
SharePoint Online
What browser(s) / client(s) have you tested
- 💥 Internet Explorer
- 💥 Microsoft Edge
- 💥 Google Chrome
- 💥 FireFox
- 💥 Safari
- mobile (iOS/iPadOS)
- mobile (Android)
- not applicable
- other (enter in the "Additional environment details" area below)
Additional environment details
Sharepoint Rest API V1 - SharePoint Asynchronous Metadata Read (AMR) API endpoint
Issue description
I tested the SharePoint Asynchronous Metadata Read (AMR) API to retrieve the metadata manifest XML.
In the resulting XML, I noticed that each file and folder has two entries:
SPFileSPListItem
These two entries look very similar, with only slight differences.
I have a few questions that are unclear from the current documentation.
Questions
-
For import operations using the SharePoint Migration API, do we need to use both
SPFileandSPListItementries, or is one of them sufficient? -
The
Idproperty differs betweenSPFileandSPListItemfor the same file:- The
Idin theSPFileentry matches the SharePoint UniqueId of the file. - The
Idin the correspondingSPListItementry is different and does not match any value returned in the ListItem REST/Graph response for that file.
What does the
Idproperty in theSPListItemobject represent? - The
-
What is the Order property in the ListItem mean by ? it was not found in the documentations
Documentation mismatch
According to the Deployment Manifest documentation, the ListItem Id is described as:
“An integer value that identifies the list item”
However, in the AMR manifest XML:
- The
Idvalue forSPListItemis of type GUID - It does not appear to correspond to the list item integer ID or any other exposed identifier
Screenshots / References
-
Screenshot showing both
SPFileandSPListItementries in the AMR manifest -
This is the SPFile Id for the SendfromAlias.docx file
-
But for the same file, in the SPListItem Id it was different and I couldn't find any property with this value in the ListItem response of this file.
This clarification would help ensure correct and supported usage of the AMR output during migrations.
Thanks!
Contributor guide
First steps
- Read the whole issue, then the project's contributing guide.
- Comment on the issue to say you are picking it up — it saves two people doing the same work.
- Fork the repository and make your change on a branch.
- Open a pull request that references the issue number.
Assessment
This issue has not been assessed yet.