pnpcore icon indicating copy to clipboard operation
pnpcore copied to clipboard

Error Accessing Sharing Links on List Items: Property SiteId Not Loaded

Open bajce opened this issue 2 months ago • 3 comments

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

  1. Create a SharePoint List (not a Document Library) and create items with sharing links.
  2. Attempt to retrieve sharing links for the file using the PnP Core SDK method item.File.GetShareLinks().

bajce avatar Apr 11 '24 13:04 bajce