How to download attachment from gmail using UiPath?

0 votes
Please tell me how can I loop through my gmail inbox and download all the attachments using UiPath?
Mar 11 in RPA by Hemant
901 views

1 answer to this question.

0 votes

Hey @Hemant, looping through emails and downloading the attachments in a good example of automation and it can be achieved using UiPath Studio. Following steps can automate this task:

1.  Create a new Sequence and drag Get POP3 Mail Messages activity. Then create email, password and mailList variables and assign your login credentials like mail_id and password to email and password variables.

2. Now go to the Properties of Get POP3 Mail Messages and set Port as 995, Server as "pop.gmail.com'. In Logon section enter your email and password variables. Also store output of this activity into mailList.

3. Next, add a ForEach activity to loop through the mailList. In Properties, set Type Argument as System.Net.Mail.MailMessage:
 


 

4. Inside ForEach, drag If activity to check whether the mail has an attachment or not

5. If the email contains an attachment, then use Save Attachment activity to save that attached file. 

Then simply go to the downloaded files folder and you can find all the attachments from your emails.

answered Mar 11 by Anvi
• 11,930 points

Related Questions In RPA

0 votes
1 answer

How to extract specific type of files from a directory using UiPath?

Hey @Avani, if you want to extract ...READ MORE

answered Mar 13 in RPA by Anvi
• 11,930 points
1,453 views
0 votes
1 answer

How to scrape data using Get Text from UI Automation tools in UiPath?

Hi Roshni, scraping any text from a web page ...READ MORE

answered Mar 20 in RPA by Pratibha
• 2,780 points
158 views
0 votes
1 answer

How to extract numbers from a web page using Uipath ?

Hi, you can simply use GetText and Message ...READ MORE

answered 6 days ago in RPA by Abha
• 20,110 points
18 views
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
2,640 views
0 votes
1 answer

Receiving Emails from Gmail in UiPath

Hi, Integration of Gmail with UiPath can be ...READ MORE

answered Mar 15 in RPA by Mugdha
• 580 points
448 views
0 votes
1 answer

Automation in Uipath

you can use the Database package for connecting  ...READ MORE

answered Apr 17, 2018 in RPA by wrecker
• 3,110 points
289 views
0 votes
1 answer

UiPath vs Workfusion

in WorkFusion, you can create a script ...READ MORE

answered Apr 17, 2018 in RPA by wrecker
• 3,110 points
960 views
0 votes
1 answer

Surface automation in rpa?

Surface automation is a visual automation that is done using ...READ MORE

answered Apr 20, 2018 in RPA by wrecker
• 3,110 points
402 views
+2 votes
1 answer

How to extract data from a website and save it to excel using UiPath?

Hi Piyush, if you want to extract ...READ MORE

answered Mar 8 in RPA by Anvi
• 11,930 points
2,741 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
• 11,930 points
2,113 views