Hi guys! I am currently a intern at local company. I just wanna ask you guys is there way to filter the attachment file name e.g. Tentative when downloading the attachments from outlook instead of the file type e.g. xlsx?
Thanks!
Hi guys! I am currently a intern at local company. I just wanna ask you guys is there way to filter the attachment file name e.g. Tentative when downloading the attachments from outlook instead of the file type e.g. xlsx?
Thanks!
From outlook filter option, we can’t use filter attachments.
After reading mails from outlook using Get Outlook Mail Message activity and will give you output as List of Mail Messages. And then use For Each loop activity to iterate that list of mail messages.
ForEach item in mailMessage
If item.Attachments.Tostring.Contains(“xlsx”)
Then do some tasks
Else
Skip
Hi @phoenix123
Usually in Get outlook mail activity we can check only a mail HAS attachment or not
we cannot filter based on the file in the attachment
So we need to get the mail message list and then only we can check with the attachment has a file of type we need or not
these are the steps to be followed to get this done
@Palaniyappan @lakshman hey guys! Thanks for your contribution for the solution and your effort for helping me looks like your are right, outlook activity can only filter file extension type instead of the file name. So, thanks once again!
This topic was automatically closed 3 days after the last reply. New replies are no longer allowed.