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 / Format list on outlook...
Power Automate
Unanswered

Format list on outlook email - adding line breaks

(0) ShareShare
ReportReport
Posted on by 79

I have a process that goes thru a folder and creates a  list with the file names; then I need to email the list.

Everything is working well, except that when I send the email with the list, the text all runs together, instead of adding line breaks.

But when I display the list in a message, it does add line breaks.

 

How can I format my email to display the files in a readable way?

 

How it shows:

File1 File2 File 3

 

What I want:

File1

File2

File3

 

Thanks!

I have the same question (0)
  • Verified answer
    VJR Profile Picture
    7,635 on at

    Hi @aperea2539 

     

    I do not know if there is an easier way.

    I had the same issue so I followed the below steps:

    - Created a new variable (MyFileList)

    - Read each current Item from the list of files returned in the Files variable by the "Get Files in Folder" action

    - Add a loop to add a html <BR> tag after every file name

    VJR_0-1635563903634.png

     

    - The above set variable is as below

     

    VJR_1-1635563999504.png

     

     

    - In the 'Body' parameter of "Send Email" action use %MyFileList%

    - This gave me an output with every file name in a new line

    Make sure to enable Body is Html in the Send Email action.

  • MichaelAnnis Profile Picture
    5,727 Moderator on at

    This is is very odd, because I do just this, and I just have the list variable as a single line item and all are listed on their own line. 

    Try this:

     

    Set Clipboard Text %Files%
    In the Email, use %ClipboardText% instead of %Files%.

    Good luck. 

  • Verified answer
    aperea2539 Profile Picture
    79 on at

    This worked for me!

    It is a bit of an overkill, BUT I already need to loop thru the items to divide my files into 2 separate lists, so, not too bad. Thank you!! @VJR 

  • aperea2539 Profile Picture
    79 on at

    @MichaelAnnis , it might be a configuration issues, maybe? Because this didn't work for me either.
    I think is really weird that the list shows fine on a message and not on the email, but alas...
    But thank you for showing me the clipboard function.

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

#2
Tomac Profile Picture

Tomac 406 Moderator

#3
abm abm Profile Picture

abm abm 245 Most Valuable Professional

Last 30 days Overall leaderboard