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 / powerautomate flow not...
Power Apps
Unanswered

powerautomate flow not showing multiple lines

(0) ShareShare
ReportReport
Posted on by 407

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:
  • v-chengfen-msft Profile Picture
    Microsoft Employee on at

    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
    407 on at

    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
    Microsoft Employee on at

    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
    407 on at

    Hi ChengFeng,

     

    Unfortunately that also show ‘expression invalid’

  • Matt383 Profile Picture
    407 on at

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

  • Matt383 Profile Picture
    407 on at

    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

Season of Sharing Community Challenge Winners!

Congratulations to our community stars!

Kudos to our 2025 Community Spotlight Honorees

Expanding mentorship, skilling, and AI innovation

Leaderboard > Power Apps

#1
11manish Profile Picture

11manish 345 Super User 2026 Season 2

#2
M Bilal Khan Profile Picture

M Bilal Khan 312

#3
Mohsin Ali Profile Picture

Mohsin Ali 252

Last 30 days Overall leaderboard