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
1,969 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,930 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
6,479 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,110 points
8,890 views
0 votes
1 answer
+1 vote
0 answers

Get filename from Outlook attachment

Hi everyone! I want to automate a process ...READ MORE

5 days ago in RPA by RandomDude
• 170 points
32 views
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,320 points
1,294 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
778 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
479 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,930 points
533 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,930 points
3,030 views