Hi Jaqueline,
We automated a similar use case a month back where we were saving the incoming emails on Gmail as PDF's. However, there is no straight way API based automation to save or export emails from Gmail as of now. The way we did was using UI based automation. For your use case, you can spy the Gmail web application to get the appropriate selectors in the following steps:
Step 1: Open the message that you want to download as .eml file
Step 2: Click on the triple dot options at the top right corner and click on Show Original
Step 3: Right Click on the Download Original link and select the menu option Save As
Step 4: Type the file path with '.eml' extension.
If any popup comes you can handle it by some other actions or a relevant business object that you can create for the same.
Not a very neat approach but for the time being something similar worked for us. Hope it helps you in some way
------------------------------
Devneet Mohanty
Consultant
PriceWaterhouseCoopers India
Ranchi
7381926237
------------------------------
----------------------------------
Hope it helps you out and if my solution resolves your query, then please provide a big thumbs up so that the others members in the community having similar problem statement can track the answer easily in future.
Regards,
Devneet Mohanty
Intelligent Process Automation Consultant | Technical Business Analyst,
WonderBotz India Pvt. Ltd.
Blue Prism Community MVP | Blue Prism 7x Certified Professional
Website: https://devneet.github.io/
Email: devneetmohanty07@gmail.com
----------------------------------