How to get the filename of an email attachment in UiPath Studio?

0 votes

How could I get the filename of attachment without saving the attachment? I want to compare that name through “if” condition.
There are options in coding like item.attachment.display_name or item.attachment.filename (for each item in mailbox loop) but I could not find either in UIPath.
Please help!

Nov 7 in RPA by Apeksha
• 1,100 points
83 views

1 answer to this question.

0 votes

Hey Apeksha, If your email contains just one attachment you could use the following code to get its name:

attachmentName = CType(item.Attachments.FirstOrDefault, Attachment).Name
image
answered Nov 8 by Abha
• 27,180 points

Related Questions In RPA

0 votes
4 answers

How to find the sum of 2 columns of an excel and display it in a 3rd column using UIPATH?

These are the steps to add two ...READ MORE

answered Aug 2 in RPA by Shivi Singhal
3,809 views
0 votes
1 answer

How to send an attachment with an email using UiPath?

Hey Rashid, if you wish to send ...READ MORE

answered Mar 11 in RPA by Anvi
• 13,960 points
4,089 views
0 votes
1 answer
0 votes
1 answer

Identify a Column in a database in UiPath Studio

There are two options to identify a ...READ MORE

answered Feb 11 in RPA by darklord
• 6,190 points
698 views
0 votes
1 answer

Which edition of UiPath is more suitable for individual use, Enterprise Platform or Community Edition? Why?

UiPath’s Community Edition (CE) is the version which is ...READ MORE

answered Mar 7 in RPA by Mishti
• 480 points
461 views
0 votes
0 answers

Getting e-mails from from mailbox in UiPath

I want to access all the unread ...READ MORE

Mar 5 in RPA by Akanksha
296 views
0 votes
1 answer

How to connect to MySQL database using UiPath?

Follow these simple steps to connect to ...READ MORE

answered Mar 7 in RPA by Mishti
• 480 points
2,540 views
0 votes
1 answer
0 votes
1 answer

How to capture data from an Outlook email in UiPath Studio?

Hey there, you can use Get Outlook ...READ MORE

answered Nov 7 in RPA by Abha
• 27,180 points
167 views