cancel
Showing results for 
Search instead for 
Did you mean: 
Reply
kris_T
Frequent Visitor

Removing CR from text string

Hello,

 

I am reading a text string in a variable, but I need to get rid of any CR (line break) characters in this variable so that I end up with one very long text value.

Any tips or advice on how to do this would be appreciated.

Thanks,

 

Kris_Belgium

1 ACCEPTED SOLUTION

Accepted Solutions
eric-cheng
Solution Sage
Solution Sage

Hi @kris_T ,

 

Check out this post with a few options and see if it helps

 

--------------------------------------------------------------------------
If I have answered your question, please mark my post as a solution
If you have found my response helpful, please give it a thumbs up

Connect on LinkedIn

View solution in original post

2 REPLIES 2
eric-cheng
Solution Sage
Solution Sage

Hi @kris_T ,

 

Check out this post with a few options and see if it helps

 

--------------------------------------------------------------------------
If I have answered your question, please mark my post as a solution
If you have found my response helpful, please give it a thumbs up

Connect on LinkedIn

View solution in original post

Nived_Nambiar
Resolver I
Resolver I

Hi @kris_T 

 

Try this way as below

Nived_Nambiar_0-1629807450400.png

 

 

First I intialized a variable [for demo] which contains values as below

Nived_Nambiar_5-1629807687210.png

 

 

Now using formulas

 

I did like this below

formula used in compose action :  

join(split(variables('Data'),decodeUriComponent('%0A')),'')
 
 
This way i am able to replace the new lines an join them together:
Nived_Nambiar_6-1629807724366.png

 

 
 
Regards,
Nived N

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!

M365 768x460.jpg

Microsoft 365 Collaboration Conference | December 7–9, 2021

Join us, in-person, December 7–9 in Las Vegas, for the largest gathering of the Microsoft community in the world.

Users online (2,941)