cancel
Showing results for 
Search instead for 
Did you mean: 
Reply
Highlighted
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
Highlighted

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
Highlighted
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.
------------------------------------------------------------------------------------------------------

Highlighted

invalid expression

Highlighted

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
Community Conference

Power Platform Community Conference

Check out the on demand sessions that are available now!

Power Platform ISV Studio

Power Platform ISV Studio

ISV Studio is designed to become the go-to Power Platform destination for ISV’s to monitor & manage published applications.

Top Solution Authors
Top Kudoed Authors
Users online (9,820)