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 this helps you out and if so, please mark the current thread as the 'Answer', so others can refer to the same for reference in future.
Regards,
Devneet Mohanty,
SS&C Blueprism Community MVP 2024,
Automation Architect,
Wonderbotz India Pvt. Ltd.