cancel
Showing results for 
Search instead for 
Did you mean: 
Reply
vanz09
New Member

get specific text from email

Hi When email arrive, we have codes in the email, example of email:

 

Hi All, The below is now ready

1504598

1589977

1548799

1579864

 

BR, signature

 

here i want get those numbers and check then against a SharePoint list and send new email with the number and details about it:

 

number

description

date

status

action

1504598

test

08/5/2020

 

none

1589977

test 2

 

ready

 

1548799

test 3

 

 

 

1579864

test 4

 

 

 

 

is it possible?

 

also, even if the number is in a sentence, like: " can you let me know if 1504598 is ready? i would like flow to answer these

3 REPLIES 3
ChristianAbata
Community Champion
Community Champion

hi @vanz09  if is a standard message you can use the fuction indexof to get the first number value and again indexof to get the start signature that is your end numbers container. Then you can split your numbers by like break.

 



Did I answer your question? Please consider to Mark
my post as a solution! to guide others :winking_face:

Proud to be a Flownaut!


If you want you can follow me at www.christianabata.com Quieres contenido en español? Síguenos en Power Automate LA
alrez
Community Support
Community Support

Hi,

 

It should be fairly easy to remove everything that is not a number in a message. From there it gets a little harder. As per christian's suggestion, you should be able to do a split by line break but then you will need to write each split to a variable to check against a SharePoint list. This gets a little interesting depending on how many numbers you are going to be sending in an email but it should be doable.

 

Regards,

 

Alex

 

-------

 

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

vanz09
New Member

Thanks to both, i tried indexof, but cant figure it out.

 

was able to split everything tho.

 

[
  "\n\nMorning\n\n\n\nThe 00 hols has been removed from the below designs\n\n\n\n1115522\n\n1115561\n\n1115517\n\n1115518\n\n1115521\n\n1115519\n\n1115520\n\n\n\nBR\n\n\n\nperre\n\nsignature\naig\n\nadrress. 
]

 

 

where do i go from here guys?

 

@ChristianAbata @alrez  

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.

365 EduCon 768x460.png

Microsoft 365 EduCon

Join us for two optional days of workshops and a 3-day conference, you can choose from over 130 sessions in multiple tracks and 25 workshops.

Users online (4,864)