Take screenshot of Outlook Mail

Hi Everyone,
I want to take screenshot of a mail getting processed in UiPath, Is there any way to open particular mail message in outlook window.

Use case:

  1. “Get Outlook Mail Message” with filtered subject
  2. Loop Through Mails
  3. Open the mail in Outlook window
  4. Take screenshot
  5. Close Outlook window


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.



This topic was automatically closed 3 days after the last reply. New replies are no longer allowed.