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

Community site session details

Session Id :
Power Automate - Building Flows
Unanswered

How to add a new line to txt file

(0) ShareShare
ReportReport
Posted on by

Hi,

 

I am currently working on a flow that would extract staff leavers' names and leaving dates from an email. I've created a flow that takes the staff name and the leaving date and puts them into a text file.

 

The problem I am facing is that when a new email comes, it overwrites the previous name and date. How do I adjust the flow to make it where it creates a new line when new information comes?

 

Thanks. 

 

 

 

I have the same question (0)
  • MarconettiMarco Profile Picture
    3,812 Super User 2024 Season 1 on at
    Re: How to add a new line to txt file

    Hello @Anonymous ,

    please use this expression in a "Compose" action:

     

    concat(body('Get_file_content'),'
    ','<your_value>')

     

    and then put the Compose Outputs in your File Content inside the Update File action.

     

    MarconettiMarco_0-1657789605304.png

     

    If I have answered your question, please mark your post as Solved.
    If you like my response, please give it a Thumbs Up.

    BR,

    Marco

     

  • Community Power Platform Member Profile Picture
    on at
    Re: How to add a new line to txt file

    Hi,

    Thanks for the reply. still confused about one thing.  The expression, concat(body('Get_file_content'),'','<your_value>') what do I put in place of "your content"?

     

  • MarconettiMarco Profile Picture
    3,812 Super User 2024 Season 1 on at
    Re: How to add a new line to txt file

    Hello @Anonymous ,

    you should put the staff name and the leaving date extracted from the email.

     

    If I have answered your question, please mark your post as Solved.
    If you like my response, please give it a Thumbs Up.

    BR,

    Marco

  • Community Power Platform Member Profile Picture
    on at
    Re: How to add a new line to txt file

    Still not working..

  • MarconettiMarco Profile Picture
    3,812 Super User 2024 Season 1 on at
    Re: How to add a new line to txt file

    @Anonymous what's the error?

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

Responsible AI policies

As AI tools become more common, we’re introducing a Responsible AI Use…

Chiara Carbone – Community Spotlight

We are honored to recognize Chiara Carbone as our Community Spotlight for November…

Leaderboard > Power Automate

#1
Michael E. Gernaey Profile Picture

Michael E. Gernaey 614 Super User 2025 Season 2

#2
Tomac Profile Picture

Tomac 401 Moderator

#3
chiaraalina Profile Picture

chiaraalina 282

Last 30 days Overall leaderboard