But it doesn't seem like you can do this... For example if I try to include "\r\n" within an expression (such as in indexOf), the actual JSON produced will have double escapes (i.e. the assumption is built in that I'm trying to literally look for those backslashes, no matter what) -- This doesn't work and isn't what I want.
e.g. instead of this "@indexOf(string(outputs('Compose_2')),'\r\n')" it will create this "@indexOf(string(outputs('Compose_2')),'\\r\\n')"
There doesn't seem to be any way to directly edit this text either... so it seems like I am stuck. Has anyone figured out a workaround?
Solved! Go to Solution.
Hi @cplumblarrick , thank you for your post in the community
Here is how I handle new line, please see below:
decodeUriComponent('%0A')
this is a few lines of text with spaces and carriage returns
split(outputs('Compose_Text'), outputs('Compose_NewLine'))
outputs('Compose_Find_NewLines')[2]
If you implement the steps above, you can get an output like the below
I am hoping this demo puts you on the right track.
If you have found my post helpful, please mark thumbs up.
Any other questions, just ask.
Thanks, Alan
Proud to be a Flownaut!
Hi @cplumblarrick , thank you for your post in the community
Here is how I handle new line, please see below:
decodeUriComponent('%0A')
this is a few lines of text with spaces and carriage returns
split(outputs('Compose_Text'), outputs('Compose_NewLine'))
outputs('Compose_Find_NewLines')[2]
If you implement the steps above, you can get an output like the below
I am hoping this demo puts you on the right track.
If you have found my post helpful, please mark thumbs up.
Any other questions, just ask.
Thanks, Alan
Proud to be a Flownaut!
No problem @cplumblarrick
The pleasure was all mine.
Be sure to post a new thread any time you have any other questions.
If you have found my post helpful, please mark thumbs up.
Any other questions, just ask.
Happy Flowing!
Thanks, Alan
Proud to be a Flownaut!
Use decodeUriComponent('%0A') function to get new line code.
Example below used to break email message into lines
split(outputs('Html_to_text')?['body'],'\n')) (this does not work)
use
split(outputs('Html_to_text')?['body'],decodeUriComponent('%0A'))
Flow accepts this as a valid expression, however in my case it splits the input line in a random space!
Thank you for your solution.
Work fine !
User | Count |
---|---|
101 | |
36 | |
29 | |
25 | |
16 |
User | Count |
---|---|
133 | |
54 | |
53 | |
37 | |
26 |