Distinguish emails

i removed that condition also and checked, still not working
& yes there are attachments

@shilpashree.mohanty Try this!

In 2nd Else If : item.Subject.Trim.ToLower.Contains(“wires”)
and put related activities in this block

Else:
→ No email Found

Try this!

@shilpashree.mohanty,

Try to get email subject in immediate window and try all possibilities there. Beyond this I don’t see any issue here.

Good luck :crossed_fingers:

Thanks,
Ashok :slight_smile:

Hi @shilpashree.mohanty , try to use this regex expressions in elseif activity.

System.Text.RegularExpressions.Regex.IsMatch(item.Subject, “^Wires\s*-\s*\w+”)

image

System.Text.RegularExpressions.Regex.IsMatch(item.Subject, “^Wires\s*_affiliate\s*-\s*\w+”)

image

^Wires\s*-\s*\w+ : This regex pattern matches subjects that start with “Wires”, followed by a hyphen “-”, and then followed by one or more word characters (letters, digits, or underscores).

^Wires\s*_affiliate\s*-\s*\w+ : This regex pattern matches subjects that start with “Wires”, followed by “_affiliate”, then a hyphen “-”, and finally followed by one or more word characters.

@shilpashree.mohanty Have you tried this?