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

Notifications

Announcements

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:
I have the same question (0)
  • v-chengfen-msft Profile Picture
    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
    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

Forum hierarchy changes are complete!

In our never-ending quest to improve we are simplifying the forum hierarchy…

Ajay Kumar Gannamaneni – Community Spotlight

We are honored to recognize Ajay Kumar Gannamaneni as our Community Spotlight for December…

Leaderboard > Power Apps

#1
WarrenBelz Profile Picture

WarrenBelz 757 Most Valuable Professional

#2
Michael E. Gernaey Profile Picture

Michael E. Gernaey 322 Super User 2025 Season 2

#3
MS.Ragavendar Profile Picture

MS.Ragavendar 209 Super User 2025 Season 2

Last 30 days Overall leaderboard