cancel
Showing results for 
Search instead for 
Did you mean: 
Reply
Highlighted
JackWu1123
Level: Powered On

Split plain text from SharePoint by '\n'

Hi

I'm designing a flow with condition to decide if the plain text includes key data. But when I tried to split the spain text to an array, it's failed.

 

Here is the flow

1.jpg

 

Here is the running status.

2.jpg

 

Would you please help to identify the reason of Split function failure ?

Appreciate if you can help on that.

 

Thanks!

Jack

1 ACCEPTED SOLUTION

Accepted Solutions
Super User
Super User

Re: Split plain text from SharePoint by '\n'

Hi @JackWu1123 , thank you for posting in the Flow Community.

Please have a look at the below, I have started with a "Compose" called "Compose Text" to simulate your Flow & mirror your input.Capture-537.png

Here is the Flow:Capture-538.png

decodeUriComponent('%0A')
split(outputs('Compose_Text'), outputs('Compose_NewLine'))

Here is the result, an array with your seperate values and no "\n".Capture-539.png

 

If you have found my post helpful, please mark thumbs up.

 

Any other questions, just ask.

 

Thanks, Alan

 


Did I answer your question? Mark my post as a solution!

Proud to be a Flownaut!


View solution in original post

2 REPLIES 2
Super User
Super User

Re: Split plain text from SharePoint by '\n'

Hi @JackWu1123 , thank you for posting in the Flow Community.

Please have a look at the below, I have started with a "Compose" called "Compose Text" to simulate your Flow & mirror your input.Capture-537.png

Here is the Flow:Capture-538.png

decodeUriComponent('%0A')
split(outputs('Compose_Text'), outputs('Compose_NewLine'))

Here is the result, an array with your seperate values and no "\n".Capture-539.png

 

If you have found my post helpful, please mark thumbs up.

 

Any other questions, just ask.

 

Thanks, Alan

 


Did I answer your question? Mark my post as a solution!

Proud to be a Flownaut!


View solution in original post

JackWu1123
Level: Powered On

Re: Split plain text from SharePoint by '\n'

Hi @AlanPs1 , it works. Thank you for your help. May I ask why the plain text can be splited by 'decodeUriComponent('%0A')' but not '\n' ? what's the meaning of 'decodeUriComponent('%0A')'?

 

I'm new to Flow design. Hope to get your expertise. 🙂

Helpful resources

Announcements
thirdimage

Power Automate Community User Group Member Badge

Fill out a quick form to claim your user group badge now!

firstImage

Incoming: New and improved badges!

We've given our badges an overhaul and also added some brand new ones!

fifthimage

Microsoft Learn

Learn how to build the business apps that you need.

sixthImage

Power Platform World Tour

Find out where you can attend!

seventhimage

Webinars & Video Gallery

Watch & learn from the Power Automate Community Video Gallery!

Top Kudoed Authors (Last 30 Days)
Users online (5,004)