How to delete outlook mail messages using UiPath
While working with email automation some times we might need to delete the outlook mail messages that are processed by BOT.
Let’s say we are processing the requests which are coming as input to email and after processing them BOT needs to delete the outlook mail message from that inbox.
This is one of the scenarios where this activity comes in handy and there are many other scenarios where it can be used.
In this article, we will see how we can delete mail messages using UiPath.
Let’s get into the practical implementation of this task:
Step1: Drag and Drop Get outlook mail message activity from activities panel to designer panel as shown below:
If you want to know more about the properties of Get outlook mail message activity click here.
Step2: Drag and Drop for each and inside that Drag and Drop delete outlook mail message activity from activities panel to designer panel as shown below:
Note: If you don’t find save outlook mail message activity in your activities panel then go to manage packages and upgrade UiPath.Mail.Activities package to 1.10.5 version.
The required parameters for Delete Outlook mail message activity are shown below:
Here:
- MailMessage – Provide the mail message variable here.
- PermanentlyDelete – If you want to delete the mail message permanently then tick this check box.
This is how we can delete outlook mail messages using UiPath.