Forum Discussion
Import Excel/CSV from SharePoint with Metadata Filter
Hi all,
I have documents stored in SharePoint but rather than using folders, I use metadata (columns) to tag files. The SharePoint Folders Import doesn't include metadata columns but do include file content. The SharePoint Lists, Odata etc don't appear to include file content but do have metadata.
Is there an option where you can retrieve the metadata (aka. custom columns created in SharePoint), filter using those columns and then extract the content from the files?
Thanks
Kaycee
I was fortunate enough to be given this advice in another forum which is effective & efficient:
Step 1
Create a helper query MetaFileNameList that generates a list of file names based on the metadata
Step 2
Use that list to filter your query with SharePoint.Files or SharePoint.Contents, something like:Table.SelectRows( PrevStepName, each ( List.Contains( MetaFileNameList, [FileNameCol] ) =true ))
6 Replies
- KayceeAdvocate I
I was fortunate enough to be given this advice in another forum which is effective & efficient:
Step 1
Create a helper query MetaFileNameList that generates a list of file names based on the metadata
Step 2
Use that list to filter your query with SharePoint.Files or SharePoint.Contents, something like:Table.SelectRows( PrevStepName, each ( List.Contains( MetaFileNameList, [FileNameCol] ) =true ))