Skip to main content
Question

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

  • January 17, 2022
  • 3 replies
  • 2204 views

Forum|alt.badge.img+6
  • Navigator | Tier 3
  • 11 replies

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+16
  • Most Valuable Pathfinder
  • 3275 replies
  • 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
  • 11 replies
  • 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


Cookie policy

We use cookies to enhance and personalize your experience. If you accept you agree to our full cookie policy. Learn more about our cookies.

 
Cookie settings