Take screenshot of Outlook Mail

Hi @Santan_Barnwal

Please give a try,

  1. Read the mail messages using get outlook mail message and store it in the Variable lstMail, type - list(mailmessage)

  2. Loop the mail messages using for each activity,set type argument as system.net.mail.mailmessage and pass value as lstMail.

  3. Inside for each activity use save mail message activity and save the mail in .eml format.

  1. After saving use start process activity and pass the file path of the previously saved file.(it will open the mail)

  2. Take the screenshot using take screenshot activity and save image activity.

  3. Use close application or close window activity to close the opened mail.

  4. Delete the mail file we saved previously using delete activity.

Thanks

3 Likes