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
1,632 views

2 answers 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
• 13,960 points
0 votes

First of all you need to setup POP3 and SMTP for your gmail, if it's done by you and you are still facing some issue, then do a fresh setup of POP3 and SMTP again, if you face any issues after that it could probably be due to gmail error 007

answered Sep 19 by Robert
• 140 points
1 flag
Your gmail error 007 link is broken.

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
• 13,960 points
2,566 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
• 3,680 points
248 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 Aug 19 in RPA by Abha
• 27,180 points
88 views
0 votes
1 answer

How to scrap only numbers from a pdf file using UiPath studio?

Hi, to scrap only numbers from a ...READ MORE

answered Oct 16 in RPA by Abha
• 27,180 points
17 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
• 600 points
798 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
365 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
1,107 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
579 views
+3 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
• 13,960 points
5,789 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
3,699 views