Skip to main content
Question

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

  • January 17, 2022
  • 3 replies
  • 2642 views

Forum|alt.badge.img+6

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

Tamil Arasu10
Most Valuable Pathfinder
Forum|alt.badge.img+18
  • Most Valuable Pathfinder
  • January 17, 2022

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


Forum|alt.badge.img+6
  • Author
  • Navigator | Tier 3
  • January 17, 2022

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