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

@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
Microsoft Ignite

Microsoft Ignite

Join digitally, March 2–4, 2021 to explore new tech that's ready to implement. Experience the keynote in mixed reality through AltspaceVR!

New Super Users

Meet the Power Automate Super Users!

Many congratulations to the Season 1 2021 Flownaut Crew!

Microsoft Ignite

Microsoft Power Platform: 2021 Release Wave 1 Plan

Power Platform release plan for the 2021 release wave 1 describes all new features releasing from April through September 2021.

MPA Community Blog

Power Automate Community Blog

Check out the community blog page where you can find valuable learning material from community and product team members!

Users online (60,774)