Forum Discussion
Syntex Column In Sharepoint Folder
- 8 months ago
Try using the list web api directly. Use OData.Feed for exploration (e.g. to confirm shape of complex column types and internal names) and then use Web.Contents for production. Yes, the list endpoint works with document libraries (list is how you access the expanded metadata). See here for main ms learn doc: https://learn.microsoft.com/en-us/sharepoint/dev/sp-add-ins/working-with-lists-and-list-items-with-rest
Note that you can page up to 5k items at once but after that you have to implmenet paging (using List.Generate for paging is best practice).
Hi Nimue,
Thank you for your inquiry submitted to the Microsoft Fabric Community Forum.
Based on our understanding, Microsoft Syntex writes extracted metadata into the document library columns. However, the SharePoint Folder connector retrieves files through the file enumeration API and exposes only file level properties such as Name, Extension, Folder Path, Content, etc., and not the complete list item schema where Syntex metadata is stored. Consequently, these columns may not be visible when using that connector.
To retrieve Syntex metadata for all documents, a possible approach is to use Get Data and select SharePoint Online List. Enter only the site URL, not the library path, and choose the “All” view rather than “Default” to ensure that all custom or Syntex columns are included. If the Syntex columns do not appear even when using the SharePoint Online List connector with proper permissions, we kindly request you to raise a support ticket using the provided link:Microsoft Fabric Support and Status | Microsoft Fabric for further analysis.
Additionally, please refer to the links below:
Power Query SharePoint Online list connector - Power Query | Microsoft Learn
Power Query SharePoint folder connector - Power Query | Microsoft Learn
We hope the information provided helps to resolve the issue. Should you have any further queries, please feel free to contact the Microsoft Fabric community.
Thank you.
Thank you for your reply v-pnaroju-msft!
I have tried using the list option and it does show my syntex column (which is great!) but it only shows the top level folders not any of the files inside the folders (which is what I want).
My setup is:
- Sharepoint
- Shared Documents
- Folder 1
- Folder1a
- File with Syntex info
- Folder1b etc.
- Files with Syntext info
- Folder1a
- Folder 2
- Folder 2a
- Files with Syntex info
- Folder 2b
- Files with Syntex info
- Folder 2a
- Folder 3...
- Folder 1
- Shared Documents
And I would like to retrieve the Files with Syntex info but the only thing that I get when I use a list view is Folder1, Folder2, Folder3, ... which isn't what I need. I have tried the following:
1. Manually opening folders:
Source = SharePoint.Tables("site", [Implementation = "2.0", ViewMode = "PowerBI"]),
#"Navigation 1" = Source{[Id = "37eb4d0d-02c6-4b07-855a-e798025851a3"]}[Items],
FirstFolder = #"Navigation 1"{0}[Items]
in
FirstFolder
Expression.Error: The field 'Items' of the record wasn't found. Details Reason = Expression.Error ErrorCode = 10071