Skip to main content

Notifications

Power Apps - Building Power Apps
Unanswered

powerautomate flow not showing multiple lines

(0) ShareShare
ReportReport
Posted on by 395

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:
  • Matt383 Profile Picture
    Matt383 395 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
    Matt383 395 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
    Matt383 395 on at
    Re: powerautomate flow not showing multiple lines

    Hi ChengFeng,

     

    Unfortunately that also show ‘expression invalid’

  • 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
    Matt383 395 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>

  • 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

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

Microsoft Kickstarter Events…

Register for Microsoft Kickstarter Events…

Announcing Our 2025 Season 1 Super Users!

A new season of Super Users has arrived, and we are so grateful for the daily…

Announcing Forum Attachment Improvements!

We're excited to announce that attachments for replies in forums and improved…

Leaderboard

#1
WarrenBelz Profile Picture

WarrenBelz 145,580

#2
RandyHayes Profile Picture

RandyHayes 76,287

#3
Pstork1 Profile Picture

Pstork1 64,909

Leaderboard