How to capture screenshots for outlook emails

Hi All,

I have a scenario where I have to send emails using our own custom activity. And this part works fine.

But I must capture the screenshots of all the emails I am sending. How can I do that?

@Krithi1

Refer this solution

@ashokkarale

I copied the text from the other thread below. When we say we can open email with START PROCESS, how to pass the input of that particular email in the “Start PROCESS”

Hi

We can open the particular outlook mail with a START PROCESS activity once it is been found and open the mail up front in your screen

Then use TAKE SCREENSHOT Activity and get the image variable as output

Then use that variable as input to SAVE IMAGE activity and mention the filepath as well on where it has the save the image

Hope this would help you

Cheers @aparna30

Hi @Krithi1

What you can do is download the mails in one folder, by using activities like Activities - Save Mail Message or Activities - Download Email then you can iterate over these mails by opening them using Start process activity & then take screenshot. You can do this in loop.

  1. Download Emails: Use activities like Save Mail Message or Download Email to save emails to a folder.
  2. Iterate Over Emails: For each file in a folder & then open each email using the Start Process activity.
  3. Take Screenshots: Capture screenshots of the emails in the same loop.

Hope this will help :slight_smile:

@AJ_Ask

Hi for now, my question is more about what to pass in the start process to open the specific email?

Also, does “Start Process” literally open the email and show us on the screen?

Hi @Krithi1
Add your save email folder path & also Add delay after each start process then add your capture screenshot. It will look somthing like this.

Hope this helps :slight_smile:

@AJ_Ask

What I tried is “I used ‘Get outlook Mail Messages’ activity”. Passed my inbox folder name and passed an output variable.

I then used For Each Mail and within that I used “Start Process”. Each of teh emails will be save to “CurrentItem” variable.

When I am passing this “CurrentItem” in the “Start Process” its asking me to select a method. But I am not seeing anything related to “Open Mail”.

Hi @Krithi1

You missed out on one step to download/save the emails & save it in folder then use it in the loop for start process. We are looping it over on the downloaded mails in a folder.

Hope this helps :slight_smile: