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
Answered

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.

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,059 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

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

#2
Tomac Profile Picture

Tomac 386 Moderator

#3
chiaraalina Profile Picture

chiaraalina 290

Last 30 days Overall leaderboard