Hi ,
I designed a flow, that grabs value stored in the "subject" field from the body of the email.
I used Html to Text option to convert email into text. While fetching the subject, it split into two lines. For my flow to work I need the value of subject in single line.
Below image is output of HTML to TEXT action output.
The highlighted text I want to capture into a single line.
The string function I used is
substring(body('Html_to_text'),add(indexOf(body('Html_to_text'), 'Subject'),7),sub(indexOf(body('Html_to_text'), 'Please'),add(indexOf(body('Html_to_text'),'Subject'),7))).
Is there any way I can merge the multiline string into one?
Help much appreciated!
Thanks
Sometimes I use online tools such as MultiLine to Single Line which help to test and expected results we can get.
Hi @VictorIvanidze ,
I haven't tried this solution. it worked for me with uricomponent solution.
Thanks for your help.
Hi @Anonymous, thanks for your cudo but please tell me if it's really working for you?
Hi @Anonymous,
syntax is: replace(text: string, oldText: string, newText: string)
So you have try to use something like
Hi @VictorIvanidze ,
Thanks for your reply. May I know which expression to use for removing CR/LF from the string in MS flow?
Hi @Jay-Encodian ,
Thanks for your reply.
I tried working with URI component. However, when I compare the value of the subject with text field, my conditions are getting failed.
My subject got
Help much appreciated!
Thank you.
@VictorIvanidze refer to the posts, this is covered... the typical approaches for removing an LB don't work
It seems much easier will be remove CR/LF from the string.
Hey @Anonymous
Check out the following solutions:
https://powerusers.microsoft.com/t5/Building-Flows/remove-line-break/td-p/521210
HTH
Jay
WarrenBelz
146,765
Most Valuable Professional
RandyHayes
76,287
Super User 2024 Season 1
Pstork1
66,091
Most Valuable Professional