pnpcore
pnpcore copied to clipboard
Error Accessing Sharing Links on List Items: Property SiteId Not Loaded
Category
- [x] Bug
Describe the bug
When attempting to use the item.File.GetShareLinks()
method on items within a List (not a Document Library) which have sharing links, I encounter an error stating that the Property SiteId was not yet loaded
. I have tried various methods to explicitly load the SiteId
property but none have resolved the issue.
Steps to reproduce
- Create a SharePoint List (not a Document Library) and create items with sharing links.
- Attempt to retrieve sharing links for the file using the PnP Core SDK method
item.File.GetShareLinks()
.