Question

How can I get filenames from a folder? (A360)

  • 17 January 2022
  • 3 replies
  • 68 views

Badge +4

Hi firends,

 

Please, I need help. I'm trying to get the names of files from a folder, but I only need to get the 3 most recent, how could I do that? I'm so newbie in bot develpment 😅


3 replies

Userlevel 3
Badge +7

Hi @Erika Jaramillo​ ,

 

Here the code,

 

image 

In this code, please include the copy file action and update value in Red highlighted box "1" or copy the file to another location.

 

Please include the counter to count the file while looping, when counter=3 stop the loop.

image

Badge +4

Thank you! Maybe you could expand the configuration of loop and string assign?

@Erika Jaramillo​ 

Please watch this youtube video you will get clear idea.

 

https://www.youtube.com/watch?v=hExIuvC0e9U/p>

 

-------------------

FYI

 

Please find below configuration of loop :- FilesInFolder is a Dic variable

 

image 

The String assign configuration - In Dic key when you add "name" key you get all the file name.

image

Reply