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, 2019 in RPA by Apeksha
• 1,110 points
310 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, 2019 by Abha
• 27,720 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, 2019 in RPA by Shivi Singhal
4,167 views
+1 vote
1 answer

How to send an attachment with an email using UiPath?

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

answered Mar 11, 2019 in RPA by Anvi
• 14,010 points
4,870 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, 2019 in RPA by Sahiti
• 6,290 points
796 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, 2019 in RPA by Mishti
• 480 points
522 views
0 votes
0 answers

Getting e-mails from from mailbox in UiPath

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

Mar 5, 2019 in RPA by Akanksha
325 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, 2019 in RPA by Mishti
• 480 points
2,961 views
0 votes
1 answer

How to get the desired packages in UiPath Studio if not available in Package Manager?

Steps to get your desired package in ...READ MORE

answered Oct 14, 2019 in RPA by Abha
• 27,720 points
108 views
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, 2019 in RPA by Abha
• 27,720 points
659 views