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 Apps / PowerApps Line Break
Power Apps
Answered

PowerApps Line Break

(0) ShareShare
ReportReport
Posted on by 2

Hi,

 

I am building a PowerApp and have a TextInput field where a user can type endless text.

 

However when I send an email with the text they have typed, it appears on 1 line instead of different lines.

 

Is there a way to split this field up every 150 characters for the email and not appear on one line?

 

Thanks

I have the same question (0)
  • cchannon Profile Picture
    4,702 Moderator on at

    \n is the standard newline character - have you tried this?

  • TheLegendTamer Profile Picture
    2 on at

    Thank you for your reply.

     

    Do I try and place this within the email HTML code I guess? I havent tried this one yet which is good to know.

     

    Not sure If I need to somehow make the app split line every x amount of characters cause its only going by TextInput4.Text to bring all the text into email currently.

     

    Thanks

  • Verified answer
    v-yujincui-msft Profile Picture
    Microsoft Employee on at

    Hi @TheLegendTamer ,

     

    Maybe you could try to pass the text from Power Apps into Flow for processing.

     

    I have made a simple test for your reference.

     

    1. Here is my Flow.

    length(outputs('Compose'))
    int(div(length(triggerBody()['Compose_Inputs']), 150))
    substring(outputs('Compose'), add(mul(items('Apply_to_each'), 150), -150), 150)
    if(equals(mod(length(outputs('Compose')), 150), 0), null, slice(outputs('Compose'), mul(last(variables('vararray')), 150)))

    vyujincuimsft_0-1659511372753.png

    vyujincuimsft_1-1659512129489.png

    vyujincuimsft_2-1659512316562.png

    vyujincuimsft_3-1659512436954.png

    2. Here is my App.

    PowerAppsLineBreak.Run(User().Email,"Test",TextInput1.Text)

    vyujincuimsft_4-1659512589792.png

    Result Screenshot:

    vyujincuimsft_5-1659512693708.png

     

     

    Best Regards,
    Charlie Choi

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 Apps

#1
11manish Profile Picture

11manish 541

#2
WarrenBelz Profile Picture

WarrenBelz 434 Most Valuable Professional

#3
Valantis Profile Picture

Valantis 289

Last 30 days Overall leaderboard