Forum Discussion

t_horrocks's avatar
t_horrocks
New Member
1 year ago
Solved

List files in SharePoint folder and subfolders by using .Contents THEN .Files (or similar)

Hi,   I need to connect to a SharePoint site and list all the files in a particular folder including its subfolders. I have folders for each year with subfolders for each month. For example I want ...
  • lbendlin's avatar
    1 year ago

    You can do that easily with recursive functions and SharePoint.Contents.  However, when you are done with that you will notice that it is not any faster than using SharePoint.Files.  Your choice.

     

    What do you do next with the data you collected?  Does this even need Power BI or could this have been done via the SahrePoint batch API?

  • t_horrocks's avatar
    1 year ago

    Thanks Ibendlin.

     

    If there is no performance improvement to be had then I guess i'll just stick with filtering the files.

     

    I then combine the contents of the files, performance some transformations and produce a series of reports in Power BI.