Power Automate" "HTML to text" remove line breaks

Wissam 61 Reputation points
2022-09-17T11:06:38.59+00:00

Hello,
I have a Power Automate to Get new email (V3) and then convert HTML to Text, then getting the Body result to SharePoint list but there are so much empty lines that was generated by email. how can I remove the empty lines.

242202-screenshot-2022-09-17-140109.png

242184-inkedscreenshot-2022-09-17-at-13-58-21-edit-your-f.jpg

Microsoft 365 and Office SharePoint For business Windows
0 comments No comments
{count} votes

Accepted answer
  1. Xyza Xue_MSFT 30,176 Reputation points Microsoft External Staff
    2022-09-19T08:55:26.163+00:00

    Hi @Wissam ,
    Here are steps:

    1. Create multiple lines of text to store the results.
    2. Create a flow (as shown below)
      242440-5.png
      The test results are shown below:
      242458-image.png

    If the answer is helpful, please click "Accept Answer" and kindly upvote it. If you have extra questions about this answer, please click "Comment".
    Note: Please follow the steps in our documentation to enable e-mail notifications if you want to receive the related email notification for this thread.


1 additional answer

Sort by: Most helpful
  1. Vinodh247 34,661 Reputation points MVP Volunteer Moderator
    2022-09-17T11:16:01.983+00:00

    Hi Wissam,

    Thanks for reaching out to Microsoft Q&A.

    Please refer the below link, hope this helps.

    https://powerusers.microsoft.com/t5/Building-Flows/Remove-spaces-from-compose-function-parse-email/m-p/1283016#M146047

    Please Upvote and Accept as answer if the reply was helpful.


Your answer

Answers can be marked as Accepted Answers by the question author, which helps users to know the answer solved the author's problem.