Hey! Any idea on how to count the number of files present in a SharePoint Folder?
Thank you.
Jad
Hey! Any idea on how to count the number of files present in a SharePoint Folder?
Thank you.
Jad
Hi
Is that share point folder is synced to your local machine
Because we got an option to sync that folder to our local with a SYNC option in the share point
—once after syncing then we will be able to access the file from that folder synced with our local machine itself
And to find the count of files in that folder we use a assign activity like this
int_filecount = Directory.GetFiles(“yourfolderpath”).Count
Where int_filecount is a variable of type int32
Cheers @jadbenn
Hi @Palaniyappan,
Thank you for your answer.
Is there any way to do it in the SharePoint Scope, without sync?
Thanks
If the SharePoint Activities doesn’t have what you are looking for you can always scrape the Documents page save it to a DT and use DT.Rows.Count to find the number of files
I am facing the same issue, I am trying to identify the folder with more items to start working on it, I can get results using Find Files Folder but on my case the folders contain over 200 items so I am unable to identify the correct folder with the mentioned activity, according to the documentation we should use For Each File/Folder but I am not able to make it work