I am trying to build a process to automatically download the Gmail attachments for .xlsx and .pdf and have them automatically printed then send over the printed files to Google drive.
Currently I am stuck on how to trigger the automatic download and run that command, I have tried to print directly from Gmail and download into a local folder, but then the click itself is not accurate and I wonder if there is a way to bypass using right click or Ctrl+P.
Any suggestion is appreciated. Feel free to let me know if there is a similar process achieved.
You can save the attachments which is received from the mail to local folder. Follow the below steps and develop the code in UiPath Studio,
→ Use the Get IMAP Mail Message activity to retrieve all the mails in the google account.
→ In the properties of Get IMAP Mail Message activity find the Filter option and give the filter if you want to filter the mails with any subject or sender mail address. Use the below filter for the subject,
[Subject] = 'Give mail subject here'"
→ Then the Output of Get IMAP Mail Message activity is List of Mail Messages datataype variable called List_Mails.
→ Then use for each activity to iterate the each mail in the List_Mails variable.
→ Inside for each insert the Save attachments activity to download all documents in the Mail to local folder.
→ Then install the UiPath.Gsuite.activities depedency in the Manage packages.
→ Then use the Use google drive activity and give the google drive account.
→ Inside of it insert the Upload file activity to upload the downloaded attachments from the mail.
The above steps has to be done in the UiPath Studio to download the attachments and upload it to Google drive.
After Code development publish it to the orchestrator.
Then you have to Trigget the published process when new mail received to the Gmail Account. Here the Event Trigger come into the picture. Check the below steps for adding trigger.
→ Login to cloud.UiPath.com → Open the Integration services
→ Go to Triggers tab → Click on Add Trigger
→ Select the Gmail in the Connector dropdown → Select the Published process in the Select automation dropdown
→ Select the Email Received option in the Event dropdown → Click on Add data filter in the Data filters
→ Select the Subject and equals and give the subject .