How to count of Attchment in Office360 Mailmessage in uipath

Hi Team,

I want to get attachments count of “.pdf” in Office360 mailmessage please help me on this.

I tried below syntax but can’t get solution

currentO360Attachment.LocalItem.Extention.Count(“.pdf”)

Please help me anyone for this,

Regards,
Raja G

1 Like

Hi @Raja.G

Try the below syntax

pdfCount = mailMessage.Attachments.OfType(Of Microsoft.Graph.FileAttachment)().Count(Function(att) att.Name.EndsWith(".pdf"))

Regards

1 Like

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