Email Attachment validation

How to validate email attachments, for example, if email comes with single attachment named 'X '. I have to perform some calculation. and if the email comes with double attachments like X, Y , I have to perform different calculation. please give me a solution

Hi @Hemasri_R

Welcome to UiPath Community!
If you are using Outlook, Get outlook mail message activity will return you collection of messages. For each message, it has attachments collection.
mail.attachments.count will return you number of attachments for each mail.

Thanks,
Saranya K R

@SaranyaKishore, its working thanks for the help :slight_smile:

Please mark it as resolved.:slight_smile: