Hi,
I’m trying to extract emails with a specific subject & then save the attachment, the saving of the attachment part is okay, I just cannot find the Mail.Subject.Contains expression for my IF statement.
Any ideas?
Thanks,
Scott
Hi,
I’m trying to extract emails with a specific subject & then save the attachment, the saving of the attachment part is okay, I just cannot find the Mail.Subject.Contains expression for my IF statement.
Any ideas?
Thanks,
Scott
is this expression used within FOR EACH loop where the list of mail is iterated
because in that loop only we will be having the type argument as System.Net.Mail.MailMessage
if that expression is used within a scope where this type argument is used…we will be getting this method where Mail is a variable name of that FOR EACH LOOP
Mail.Subject.ToString.Contains(“yourkeyword”)
Cheers @scotthutton
Yes, I have a ForEach activity within the IF activity where I save emails with attachments. How can I get the correct condition to save specific emails based on subject? Thanks @Palaniyappan
yah thats possible where in GET OUTLOOK MAIL activity itself we can set the condition in FILTER property like this
"[Subject] = ‘your subject’ "
or to check partially
"@sql=urn:schemas:httpmail:subject like ‘%your keyword%’ "
Cheers @scotthutton
Thank you @Palaniyappan using the Filter in get outlook mail worked a treat.
Cheers @scotthutton
This topic was automatically closed 3 days after the last reply. New replies are no longer allowed.