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.

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
Power Platform Conf 2022 768x460.jpg

Join us for Microsoft Power Platform Conference

The first Microsoft-sponsored Power Platform Conference is coming in September. 100+ speakers, 150+ sessions, and what's new and next for Power Platform.

New Ideas Forum MPA.jpg

A new place to submit your Ideas for Power Automate

Announcing a new way to share your feedback with the Power Automate Team.

MPA Virtual Workshop Carousel 768x460.png

Register for a Free Workshop

Learn to digitize and optimize business processes and connect all your applications to share data in real time.

MPA Licensing.jpg

Ask your licensing questions at the Power Automate AMA!

Join Priya Kodukula and the licensing team, super users and MVPs to find answers to your questions on Power Automate licensing.

Users online (3,631)