cancel
Showing results for 
Search instead for 
Did you mean: 
Reply
Highlighted
Responsive Resident
Responsive Resident

Split Text Formula

Hello all,

 

I am trying to achieve grabbing this bit out of an email, my approach is to capture all the text not including the "Info : " and put them into an array and then i can loop over it to grab what i want. The email comes in, in 2 cases:

first case:

 

Some text here and what i want to grab right under

Info : AAA BBB CCCC DDDDD EEEEEE
Info : FFFF GGGGG HHHHH IIIIIIII JJJ
Info : KK LLL

 

second case:

 

Some text here and what i want to grab right under with a new line

 

Info : AAA BBB CCCC DDDDD EEEEEE
Info : FFFF GGGGG HHHHH IIIIIIII JJJ
Info : KK LLL

 

Thank you

1 ACCEPTED SOLUTION

Accepted Solutions
Highlighted
Community Support
Community Support

Hi @mmattar,

 

Case 1 could use "Info : " to convert the string into an array, then use skip() function to remove the "some text here...":

skip(split(outputs('Compose'),'Info : '),1)

Annotation 2020-07-09 104857.jpg

 

Could you please explain more about "Some text here and what i want to grab right under with a new line"?

What's the mean of new line?

 

Best Regards,
Community Support Team _ Lin Tu
If this post helps, then please consider Accept it as the solution to help the other members find it more quickly.

View solution in original post

3 REPLIES 3
Highlighted
Community Support
Community Support

Hi @mmattar,

 

Case 1 could use "Info : " to convert the string into an array, then use skip() function to remove the "some text here...":

skip(split(outputs('Compose'),'Info : '),1)

Annotation 2020-07-09 104857.jpg

 

Could you please explain more about "Some text here and what i want to grab right under with a new line"?

What's the mean of new line?

 

Best Regards,
Community Support Team _ Lin Tu
If this post helps, then please consider Accept it as the solution to help the other members find it more quickly.

View solution in original post

Highlighted

Hey thanks for the reply, what i mean by this is,

"Some text here and what i want to grab right under with a new line"?

What's the mean of new line?

its just some random text to show that there is text above what i want to grab, sometimes right under it and sometimes with a newline in between."Some text here and what i want to grab right under with a new line"?

 

Initially i am trying to grab all the info data, and find the "HHHHH", but this could be placed in a different spot not always  the same spot in the email. But it is in the "Info : " 



Highlighted

Hi @mmattar,

 

If so, you could following these steps:

Firstly, initialize a new line variable as a separator to convert the text into an array.

Secondly, use the filter query action to extract these rows contains "Info : ".

You could have a try:

Annotation 2020-07-10 164717.jpg

 

Annotation 2020-07-10 164732.jpg

 

Best Regards,
Community Support Team _ Lin Tu
If this post helps, then please consider Accept it as the solution to help the other members find it more quickly.

Helpful resources

Announcements
Community Conference

Power Platform Community Conference

Check out the on demand sessions that are available now!

Power Platform ISV Studio

Power Platform ISV Studio

ISV Studio is designed to become the go-to Power Platform destination for ISV’s to monitor & manage published applications.

Top Solution Authors
Top Kudoed Authors
Users online (8,227)