-
Notifications
You must be signed in to change notification settings - Fork 189
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
Error Accessing Sharing Links on List Items: Property SiteId Not Loaded #1440
Comments
@bajce : can you show me how you've loaded the item? |
Im loading Items using List#LoadItemsByCamlQuery. But the exception occurs only when loading items of List (not Document Library). As a workaround im currently loading the Sharing Link permissions directly via Graph API. list.LoadItemsByCamlQuery(new CamlQueryOptions()
{
ViewXml = @"<View Scope='RecursiveAll'>
<ViewFields>
<FieldRef Name='FileLeafRef'/>
<FieldRef Name='FileRef'/>
<FieldRef Name='FileDirRef'/>
<FieldRef Name='ItemChildCount'/>
<FieldRef Name='FolderChildCount'/>
<FieldRef Name='UniqueId'/>
<FieldRef Name='ParentUniqueId'/>
<FieldRef Name='Title'/>
<FieldRef Name='FSObjType'/>
</ViewFields>
<RowLimit Paged='TRUE'>500</RowLimit>
</View>",
DatesInUtc = true,
PagingInfo = nextPage
},
item => item.UniqueId,
item => item.FileSystemObjectType,
item => item.FieldValuesAsText,
item => item.File.QueryProperties(f => f.UniqueId, f => f.SiteId, f => f.VroomItemID, f => f.VroomDriveID),
item => item.Folder.QueryProperties(f => f.UniqueId),
item => item.HasUniqueRoleAssignments);` |
@bajce : we did not yet implement |
@bajce : closing per no response for a long time. If needed, please re-open and provide more context |
Category
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 theProperty SiteId was not yet loaded
. I have tried various methods to explicitly load theSiteId
property but none have resolved the issue.Steps to reproduce
item.File.GetShareLinks()
.The text was updated successfully, but these errors were encountered: