Objective
The objective of this How-To guide is for the user to forward and delete an email in the Microsoft Outlook application using OpenBots Studio. Outlook is a very popular business tool for sending/receiving emails as well as scheduling meetings and appointments.
Walkthrough
The following guide demonstrates the commands used to forward or delete an email in OpenBots.
Step 1:To search for and extract one or multiple emails from an Outlook folder, use the Get Outlook Emails Command
  • Select Get Outlook Emails Command
  • Type in the name of the folder to look for email(s)
  • Type the search criteria for the email(s). This example looks for email(s) with the email subject matching this phrase: ‘Test’
  • Select ‘Yes’ (default choice) or ‘No’ to search for unread emails only
  • Select ‘Yes’ or ‘No’ (default) to mark each email found as read
  • Select ‘Yes’ or ‘No’ (default) to save the emails and their file attachments
  • Type the name of the list variable to pass these emails into (in this case vTest). Please note that a list variable is different from a variable.
  • Click OK
Step 2: To loop through the list variable and extract one email at a time, use the For Each Command
  • Select For Each Command
  • Type in the name of the List variable (‘vTest’)
  • Type in the name of variable to send each email individually to (‘vEmail’)
  • Click OK
Step 3:To forward an Outlook email, use the Forward Outlook Email Command
  • Select Forward Outlook Email Command
  • Type in the MailItem variable vEmail
  • Type in the email address of the person receiving the forwarded email (Recipients)
  • Click OK
Step 4:To delete an Outlook email, use the Delete Outlook Email Command
  • Select Delete Outlook Email Command
  • Type in the name of the MailItem variable vEmail
  • Select whether the automation will delete read or read and unread emails (Yes or No)
  • Click OK
The commands in this guide can be utilized alongside many of the other commands that will be discussed in later guides. Below is a snapshot of the commands used to Forward and Delete Outlook emails in this guide.

Commands utilized for the above concept (Forwarding & Deleting an email in Outlook) are as follows:

Outlook Command(s): Get Outlook Emails, For Each, Forward Outlook Email, Delete Outlook Email

Newsletter Bot

Lets stay in touch!

Join our weekly newsletter and follow us on social media.

Contact Sales
Call Our Experts!