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 / Read txt file and modi...
Power Automate
Answered

Read txt file and modify it via Power Automate

(0) ShareShare
ReportReport
Posted on by 96

Dear Power Automate Community,

 

I have a manual task which I perform every day at work and want to automate it via Power Automate.

Every day I generate a new .txt file via excel macro which includes FX deals inside. The excel macro is generating the .txt file and pasting it in a specified network folder. After that I open the file and amend 1 line and then save it.

 

Can Power Automate scan this folder and trigger a flow when a new .txt file is created by the macro and then modify that 1 line automatically every time?


I need general directions - can Power Automate read the file directly from the shared network folder. If not we can setup a PowerShell script to monitor the folder and send an email whenever new .txt file is created. This email will then be my trigger for the flow. 

 

Any help will be highly appreciated!

 

Categories:
I have the same question (0)
  • Verified answer
    Michael E. Gernaey Profile Picture
    53,960 Moderator on at

    @autoperfect93 

     

    Hi, in general terms yes you can

     

    1. Create an Automated flow, for anytime a file is created  but the actions support SharePoint and OneDrive only. Not a network location as you are doing now. If you can instead save them to a OneDrive or SharePoint library then no issue.

     

    2. Use Get File Content, to read the text

    3. Use a Compose (or other method) to update the Text.

    4. Then use Update File (for SharePoint or OneDrive)


    If you like my answer, I would really appreciate if you please Mark it as Resolved, and give it a thumbs up, so it can help others

    Cheers

    Thank You
    Michael Gernaey MCT | MCSE | MCP | Self-Contractor| Ex-Microsoft
    https://gernaeysoftware.com
    LinkedIn: https://www.linkedin.com/in/michaelgernaey

  • Hsiang Profile Picture
    25 on at

    you can check out the post here

     

    How to manually make log.txt in Power Automate to trace log in a flow

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

Introducing the 2026 Season 1 community Super Users

Congratulations to our 2026 Super Users!

Kudos to our 2025 Community Spotlight Honorees

Congratulations to our 2025 community superstars!

Leaderboard > Power Automate

#1
Haque Profile Picture

Haque 557

#2
Valantis Profile Picture

Valantis 328

#3
David_MA Profile Picture

David_MA 264 Super User 2026 Season 1

Last 30 days Overall leaderboard