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 Platform Community / Forums / Power Automate / Get comma seperated va...
Power Automate
Unanswered

Get comma seperated values one below the other when using in Send an email

(0) ShareShare
ReportReport
Posted on by 101

I have a SharePoint list where we have data of MS Form responses stored. One column has data with multiple comma-separated values. I want to use these values in mail-in Power Automate but all these values are coming in line I want these values to be one below the other so that when I use this in the table then in the single cell they can be seen like one below the other.

This is how I see the Table

Total Maintenance Cost$$$$
Mechanical Repair WorkEngine oil changes., Engine overhaul.

This is how I want it to look

Total Maintenance Cost43000
Mechanical Repair Work

Engine oil changes.

Engine overhaul.

Categories:
I have the same question (0)
  • v-jefferni Profile Picture
    on at
    Re: Get comma seperated values one below the other when using in Send an email

    Hi @SunnyRKFOODLAND ,

     

    You can use replace function and replace comas with a change line symbol using decodeUriComponent('%0A')

    vjefferni_0-1701066481878.png

    vjefferni_1-1701066506969.png

    replace(outputs('Compose'),',',decodeUriComponent('%0A'))

     

    Best regards,

  • Verified answer
    grantjenkins Profile Picture
    11,063 Moderator on at
    Re: Get comma seperated values one below the other when using in Send an email

    In your Create HTML table I'd use the following expression to split the values by comma, then join with a <br> tag so they appear on a new line in your email.

     

    //Replace Field_Name with the name of your field
    
    join(split(item()?['Field_Name'], ','), '<br>')

     

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

#2
Tomac Profile Picture

Tomac 456 Moderator

#3
abm abm Profile Picture

abm abm 243 Most Valuable Professional

Last 30 days Overall leaderboard