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

Announcements

News and Announcements icon
Community site session details

Community site session details

Session Id :
Power Platform Community / Forums / Power Automate / Formatting Check-in Co...
Power Automate
Answered

Formatting Check-in Comments

(0) ShareShare
ReportReport
Posted on by 8

Hi!

 

I'm trying to format check-in comments from a sharepoint file so that they are on separate line items. The first snip is how the outputted email currently comes in through the initialize variable action. Second snip is how I'd ideally like to see it. I tried using compose and set variable commands (third snip) and last snip is most of the code.

 

I'm pretty new so any help would be appreciated!

 

Piinthesky_0-1666962517633.png

Piinthesky_1-1666962580934.png

 

Piinthesky_2-1666962616106.png

Piinthesky_3-1666962648272.png

 

Categories:
I have the same question (0)
  • Verified answer
    schwibach Profile Picture
    2 Moderator on at

    Use an expression that looks like this:

     

    concat('string1','

    ','string2','

    ','string3')

     

    That will give you new lines

  • Pi-in-the-sky Profile Picture
    8 on at

    Thanks @schwibach , don't I have to define and split out string 1, 2 and 3 beforehand? Wouldn't this have to happen in an apply to each loop so I don't have to define the number of strings (as they will not be constant)? 

  • schwibach Profile Picture
    2 Moderator on at

    Yes, you split your string into an array according to your criteria.

    If the length of that array is not constant, you initialise an empty string variable.

    Then you loop through the array and append the concatenated string with the line break.

  • Pi-in-the-sky Profile Picture
    8 on at

    Thank you! That worked!

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

Introducing the 2026 Season 1 community Super Users

Congratulations to our 2026 Super Users!

Kudos to our 2025 Community Spotlight Honorees

Congratulations to our 2025 community superstars!

Congratulations to the March Top 10 Community Leaders!

These are the community rock stars!

Leaderboard > Power Automate

#1
Haque Profile Picture

Haque 589

#2
Valantis Profile Picture

Valantis 459

#3
11manish Profile Picture

11manish 382

Last 30 days Overall leaderboard