Unread email body specific keyword read into variable


#1

hi everyone please help me i want to read the email body which is unread and which contain the specific keyword suppose in the mail body contain

keyskills:java,.net,sql.

then i want to read the content here java,.net,sql by using the keyskills index here and want to store into variable please help


#2

Use GetMail activity with the property ‘OnlyUnreadMessages’ checked.
In your sequence check if the mailMessage.Body.Contains(“keyskills”)
Then you can split you substring the body after ‘keyskills:’ index and then split the output using ‘,’
The result will be your array of skills.

Try the below link and see it it helps


#3

i am not using outlook here and can you give the split syntax according to this.

keyskills:java,.net,sql.


#4

Then what activity are you using?

here you go. testSubstring.xaml (5.8 KB)


#5

thanks bro but now i want to store the array data into single variable separated by comma. i tried with String join method here but fail help please.r u on hangout bro?


#6

so i guess you dont want to split.
Then use thistestSubstring.xaml (5.3 KB)


#7

thanks bro its really helpful