Skip to content

How to split a string into an array by line breaks in Power Automate?

  • Create a new variable that contains just a linebreak (it’s invisible in the pic):
image-4.png
  • Use Compose to split the array by the linebreak variable.
Expression:  split(variables(‘litania2’),variables(‘linebreak’))
Tags:

2 thoughts on “How to split a string into an array by line breaks in Power Automate?”

  1. Wow this worked! Easy to implement as well. I tried several other ideas, such as splitting by ‘\n’, and splitting by unicode character %0A, but none of them were working.

    My flow is reading from a multi-line text column from a SharePoint list item

Leave a Reply

Your email address will not be published. Required fields are marked *