Robotic Process Automation (RPA)

 View Only
Expand all | Collapse all

How to get specific mails like based on the Subject

  • 1.  How to get specific mails like based on the Subject

    Posted Thu June 30, 2022 11:03 AM
    Hi All,

    I want to read emails from outlook and i am doing so by using read email action but the read email action just picks randomly some email and gives me the subject, it does not pick the latest email or the unread email and there is no option as well to give a filter like if we want only unread mail or with some specific subject line or to address. So please let me know how can we achieve this.

    Regards,
    Divas

    ------------------------------
    Divas Gupta
    ------------------------------


  • 2.  RE: How to get specific mails like based on the Subject

    IBM Champion
    Posted Fri July 01, 2022 09:36 AM
    Hi Divas,

    To filter emails you can use the Apply Search Filter command. The order of the steps usually is:
    1. Connect to the mailbox
    2. Use Apply Search Filter with the filters you want
    3. Loop through the mails (For Each with the connection variable as the collection)
    4. Inside the For Each loop, use other Email commands you might need, like Read Email

    Hope this helps you.

    ------------------------------
    Vinicius Marques
    ------------------------------