Skip to main content
Community site session details

Community site session details

Session Id :
Power Automate - Building Flows
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

 

  • Pi-in-the-sky Profile Picture
    8 on at
    Re: Formatting Check-in Comments

    Thank you! That worked!

  • schwibach Profile Picture
    Super User 2025 Season 1 on at
    Re: Formatting Check-in Comments

    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
    Re: Formatting Check-in Comments

    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)? 

  • Verified answer
    schwibach Profile Picture
    Super User 2025 Season 1 on at
    Re: Formatting Check-in Comments

    Use an expression that looks like this:

     

    concat('string1','

    ','string2','

    ','string3')

     

    That will give you new lines

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

Paul Stork – Community Spotlight

We are honored to recognize Paul Stork as our July 2025 Community…

Congratulations to the June Top 10 Community Leaders!

These are the community rock stars!

Announcing the Engage with the Community forum!

This forum is your space to connect, share, and grow!

Leaderboard > Power Automate

#1
Michael E. Gernaey Profile Picture

Michael E. Gernaey 497 Super User 2025 Season 1

#2
David_MA Profile Picture

David_MA 436 Super User 2025 Season 1

#3
Riyaz_riz11 Profile Picture

Riyaz_riz11 244 Super User 2025 Season 1