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

Notifications

Announcements

Community site session details

Community site session details

Session Id :
Power Platform Community / Forums / Power Automate / Read txt file and modi...
Power Automate
Unanswered

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,315 Super User 2025 Season 2 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

Forum hierarchy changes are complete!

In our never-ending quest to improve we are simplifying the forum hierarchy…

Ajay Kumar Gannamaneni – Community Spotlight

We are honored to recognize Ajay Kumar Gannamaneni as our Community Spotlight for December…

Leaderboard > Power Automate

#1
Michael E. Gernaey Profile Picture

Michael E. Gernaey 538 Super User 2025 Season 2

#2
Tomac Profile Picture

Tomac 405 Moderator

#3
abm abm Profile Picture

abm abm 252 Most Valuable Professional

Last 30 days Overall leaderboard