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 Apps - Building Power Apps
Unanswered

powerautomate flow not showing multiple lines

(0) ShareShare
ReportReport
Posted on by 405

I have a flow that converts the data from powerapps into a html script then converts to pdf. The issue is if someone enters multiple lines of text in a field in the app like below
this is a test
space entered here
and here
and here
and here

 

When it is converted to html, it puts all the data on one line. Looks like this

this is a test space entered here and here and here and here

 

This is a section of html that i am using in the flow, Recommendations is the name of the field
<table style="table-layout: fixed; height: 123px;" width="578">
<tbody>
<tr style="height: 22.3375px;">
<td style="width: 553.8px; height: 22.3375px; text-align: left;"><strong>Recommendations:</strong></td>
</tr>
<tr style="height: 54px;">
<td style="width: 553.8px; height: 54px;><textarea rows="5" cols="50">',variables('objectList')?['Recommendations'],'</textarea></td>
</tr>
</tbody>
</table>

 

The text shows correctly in powerapps and sharepoint just not once converted to html. Any advice would be much appreciated

 

 

Categories:
I have the same question (0)
  • v-chengfen-msft Profile Picture
    on at
    Re: powerautomate flow not showing multiple lines

    Hi @Matt383 ,

    Please replace the line break with "<br>" in flow, for example:

     

    replace(variables('objectList')?['Recommendations'],decodeUriComponent ('%0A'),'<br>')

     

    Best Regards,

    ChengFeng

  • Matt383 Profile Picture
    405 on at
    Re: powerautomate flow not showing multiple lines

    Thanks for getting back to me ChengFeng. I have tried both below, however, it says the expression is invalid.
    <td style="width: 553.8px; height: 54px;>',replace(variables('objectList')?['Recommendations'],decodeUriComponent ('%0A'),'<br>')</td>

    <td style="width: 553.8px; height: 54px;>',replace(variables('objectList')?['Recommendations'],'decodeUriComponent ('%0A'),'<br>')</td>

  • v-chengfen-msft Profile Picture
    on at
    Re: powerautomate flow not showing multiple lines

    Hi @Matt383  ,

    Please try:

     

    <td style="width: 553.8px; height: 54px;>',@{replace(variables('objectList')?['Recommendations'],decodeUriComponent ('%0A'),'<br>')}</td>

     

    Best Regards,

    ChengFeng

     

  • Matt383 Profile Picture
    405 on at
    Re: powerautomate flow not showing multiple lines

    Hi ChengFeng,

     

    Unfortunately that also show ‘expression invalid’

  • Matt383 Profile Picture
    405 on at
    Re: powerautomate flow not showing multiple lines

    Hi ChengFeng, Is there any other variations of that syntax you think may work?

  • Matt383 Profile Picture
    405 on at
    Re: powerautomate flow not showing multiple lines

    Hi ChengFeng, Is there any other variations of that syntax you think may work?

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 Apps

#1
WarrenBelz Profile Picture

WarrenBelz 671 Most Valuable Professional

#2
Michael E. Gernaey Profile Picture

Michael E. Gernaey 424 Super User 2025 Season 2

#3
developerAJ Profile Picture

developerAJ 243

Last 30 days Overall leaderboard