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
3,609 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
• 28,060 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
9,440 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,150 points
12,663 views
0 votes
1 answer
+1 vote
0 answers

Get filename from Outlook attachment

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

Sep 25, 2020 in RPA by RandomDude
• 260 points
751 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 12, 2019 in RPA by Sahiti
• 6,380 points
1,779 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
964 views
0 votes
0 answers

Getting e-mails from from mailbox in UiPath

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

Mar 6, 2019 in RPA by Akanksha
612 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 15, 2019 in RPA by Abha
• 28,060 points
1,101 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
• 28,060 points
4,542 views