In my workflow I need to look for a starting word within the subject line of the email from outlook.If the subject line starts with that particular word only then the BOT will extract the subject line and will split…could anyone guide me a bit…I tried but its not running
-
Use Get Outlook mail message and it will give you output as List (MailMessages)
-
Iterate this list using For each
forEach item in MailMessage If item.subject.StartsWith("Requiredword") Then Proceed Else Ignore
Try this regex code in assign activity
System.Text.RegularExpressions.Regex.Match(MailBody,“(?<=SpecificWord).+”).ToString
it will read the all the sentence after SpecificWord
Thanks. I tried it but it did not helped me
vsubject.StartsWith(“”)
The first starting word in my case is [KtrIus]: and then onwards. so would it be like
vsubject.StartsWith(“[KtrIus]”)
I tried the same but it did not worked
It worked…my mistake…Thanks a lot
1 Like
Will try this as well …
Please mark mine as solution and close this thread. It will help to others also.
This topic was automatically closed 3 days after the last reply. New replies are no longer allowed.