How can I count pdf file in email attachment.
I need to meet below requirement :-
- 1 PDF attachment only → email acceptable
- 1 PDF + supporting documents (docx/xlsx) → email acceptable
- 2 PDF (more than 1) attachments → email NOT acceptable
- 0 PDF attachment → email NOT acceptable
I have try item.Attachments.Count. But it count all attachments without count for PDF only.
I also have searched mostly everywhere but I still can’t find the solution.
I have read few of the solution suggested to download the attachment in a Temp Folder first.
But for my process, after meet all this requirement, only then attachments will be downloaded into a folder.
Please help. Thanks in advance