Mail.Subject.Contains

I have emails with 2 different subject lines,
one is: ABCD XXXXXXXX EFGH and the other is: ABCD YYYYYYYY EFGH

Both these emails, I need to download their file attachments.

How do I write using: mail.subject.contains?

Thank you

Hi @ayeo22

Have you tried to use If activity

mail.subject.contains("ABCD XXXXXXXX EFGH") Or mail.subject.contains("ABCD YYYYYYYY EFGH")

In the Then part Use Save Attachment activity

Regards
Gokul

Check out this video link for you reference @ayeo22

Regards
Gokul

1 Like

how do I write if I want to use the wildcard * in the mail.subject.contains instead of using Or?

@ayeo22
Use this as filter in get mail message activity and download those attachment “@SQL=”“http://schemas.microsoft.com/mapi/proptag/0x0037001f”" like ‘ABCD%EFGH’"

1 Like

HI @ayeo22

I can’t able to understand what you tell *?

Check out this XAML file

GetOutlookMail.xaml (11.8 KB)

Regards
Gokul

This topic was automatically closed 3 days after the last reply. New replies are no longer allowed.