cancel
Showing results for 
Search instead for 
Did you mean: 
Reply
mmattar
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
v-litu-msft
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
v-litu-msft
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

mmattar
Responsive Resident
Responsive Resident

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 : " 



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
UG GA Amplification 768x460.png

Launching new user group features

Learn how to create your own user groups today!

Community Connections 768x460.jpg

Community & How To Videos

Check out the new Power Platform Community Connections gallery!

M365 768x460.jpg

Microsoft 365 Collaboration Conference | December 7–9, 2021

Join us, in-person, December 7–9 in Las Vegas, for the largest gathering of the Microsoft community in the world.

Users online (1,709)