web
You’re offline. This is a read only version of the page.
close
Skip to main content

Announcements

News and Announcements icon
Community site session details

Community site session details

Session Id :
Power Platform Community / Forums / Power Automate / List files and write i...
Power Automate
Suggested Answer

List files and write into text file

(1) ShareShare
ReportReport
Posted on by 16
Hello,
 
I have a very simple requirement to list all files from certain folder and write the output in text file. I tried few approaches but it did not work out for me. Maybe i am missing something basic that did not struck my simple brain. can you help me with this request. 
 
For ex:
Folder named <Animals> contains files such as cat, dog, zebra, tiger, lion etc.
 
I just want to list all files and write the output into animals.txt like below.
 
animals.txt
cat
dog
zebra
tiger
lion
 
Thanks in advance !!
Categories:
I have the same question (0)
  • Suggested answer
    AlexEncodian Profile Picture
    4,409 Moderator on at
    1) Trigger
    2) Initialise string variable
    3) Get files (properties only)
    4) For each loop, append file name to string variable

Under review

Thank you for your reply! To ensure a great experience for everyone, your content is awaiting approval by our Community Managers. Please check back later.

Helpful resources

Quick Links

Season of Sharing Community Challenge Launch!

Jump in, show your community spirit, and win prizes!

Kudos to our 2025 Community Spotlight Honorees

Congratulations to our 2025 community superstars!

Congratulations to the April Top 10 Community Leaders!

These are the community rock stars!

Leaderboard > Power Automate

#1
Vish WR Profile Picture

Vish WR 476

#2
Haque Profile Picture

Haque 424

#3
David_MA Profile Picture

David_MA 350 Super User 2026 Season 1

Last 30 days Overall leaderboard