Get the number of attachments in an email

I have a process that has email attachments as input data. How can I get the number of attachments from a list mail message type variable? Thank you for your help

@Marisa_Ontiveros1,

I hope you have emailItem already in an variable so use this snippet to get count of attachments.

attachmentsCount = emailItem .Attachments.Count

Sample Code:
image

Thanks,
Ashok :slight_smile:

It works!!! Thank you

Perfect! Glad I’m able to help! :slight_smile:

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