Hi,
I am using the below activity to find the file of a particular folder in UiPath
and the output of this activity is saved in this variable
My query is,
how can i get the count of the files from the output?
Hi,
I am using the below activity to find the file of a particular folder in UiPath
and the output of this activity is saved in this variable
My query is,
how can i get the count of the files from the output?
Your Result
variable would be collection type datatype. So you can get the count using Result.Count
Just a caution of word to avoid using Find Files and Folder as it’s already deprecated.
it only returing as 1.
the files inside the invoice folder are around 300. so I need the count as 300
Find Files and Folders will find a file with it’s name or whatever filter we configure.
If you want to get all the files in a folder, we will have to use For Each File/Folder
which gain have limitation of 200 items only.
I never tried but check if there some pagination we can do here. That’s the only way. I will try this in free time and update here.
while printing the output of FindResult in immediate panel, i got driveitem details with the below data also
Folder=Folder { AdditionalData=null, ChildCount=313, ODataType=null, View=null },
here this childcount is the count of files inside the folder.
So how can I get the value printed ?
I can’t get the count from this output of this activity
Thanks all for your help.
I got the count value by the following method
FindResult.Folder.ChildCount
This topic was automatically closed 3 days after the last reply. New replies are no longer allowed.