cancel
Showing results for 
Search instead for 
Did you mean: 
Reply
stujol80
Helper II
Helper II

Force HTML carriage return

hi,

 

i have a powerapps form in a modern sharepoint site where the user enters values. i have a multiline field for FileNames. the user will input a FileName and press enter for the next name.

 

Name 1

Name 2

Name 3

 

etc

 

I want to put these names into HTML format.

 

Currently these are showing as Name 1 Name 2 Name 3 when in HTML format. I'm think i'm doing the right thing by replacing the carriage return with '<br>' which should force a new line in HTML but i'm struggling to get powerautomate flow to identify the carriage return.

 

i've used 

replace(outputs('Get_SMR_Details')?['body/CRC_FileName'],'%0D','<br>')
replace(outputs('Get_SMR_Details')?['body/CRC_FileName'],'%0A','<br>')
replace(outputs('Get_SMR_Details')?['body/CRC_FileName'],Char(10),'<br>')
replace(outputs('Get_SMR_Details')?['body/CRC_FileName'],' ','<br>')
 

Untitled.jpg

1 ACCEPTED SOLUTION

Accepted Solutions

i managed to resolve by using

 

replace(replace(encodeUriComponent(outputs('Get_SMR_Details')?['body/CRC_FileName']),'%0A','<br>'),'%20',' ')

View solution in original post

3 REPLIES 3
Amanthaper
Responsive Resident
Responsive Resident

@stujol80 

Please try adding \r\n at the end of each row like below.

replace(outputs('Get_SMR_Details')?['body/CRC_FileName'],'%0D','<br>')\r\n

 

Cheers,

Aman

------------------------------------------------------------------------------------------------------
If my post helps you with your problem or answers your question, please mark it Solved or Answered. This helps anyone with similar challenges. If you like my response, please give it a Thumbs Up.
------------------------------------------------------------------------------------------------------

invalid expression

i managed to resolve by using

 

replace(replace(encodeUriComponent(outputs('Get_SMR_Details')?['body/CRC_FileName']),'%0A','<br>'),'%20',' ')

View solution in original post

Helpful resources

Announcements
UG GA Amplification 768x460.png

Launching new user group features

Learn how to create your own user groups today!

Community Connections 768x460.jpg

Community & How To Videos

Check out the new Power Platform Community Connections gallery!

Welcome Super Users.jpg

Super User Season 2

Congratulations, the new Super User Season 2 for 2021 has started!

Carousel 2021 Release Wave 2 Plan 768x460.jpg

2021 Release Wave 2 Plan

Power Platform release plan for the 2021 release wave 2 describes all new features releasing from October 2021 through March 2022.

Top Solution Authors
Users online (2,360)