cancel
Showing results for 
Search instead for 
Did you mean: 

Read Outlook

NayanaH_P
Level 4
How to read a email with same subject but with different date, Eg Blueprism Training 30\08\2022, BluePrism Training 31\08\2022. As in get received item(Basic) we can only specify text in subject, not date. and how to read email date in blue prism.​

------------------------------
Nayana H P
------------------------------
2 REPLIES 2

PabloSarabia
Level 11
Hi @NayanaH_P

In the VBO "Email - POP3/SMTP" you have an action to list all the messages that you have in the mailbox. The action "List Messages" returns you a collection with the Subject and the Data Sent. 

Then you can filter the collection by using the VBO "Utility - Collection Manipulation" and the Action "Filter Collection".

In this collection you have a collumn called "MessageID", this is the message's identificator. If you want to get the body or any other info from this message, use the action "Get Message" that need as an input parameter this ID.

Hope this helps you!

See you in the Community, bye 🙂

------------------------------
Pablo Sarabia
Solution Manager & Architect
Altamira Assets Management
Madrid
------------------------------

ewilson
Staff
Staff
Hi @NayanaH_P,

@PabloSarabia has provided you a explanation about how to do this using the POP3/SMTP VBO. You can also perform this using the Microsoft Outlook VBO. There are 3 different action for reading received emails. The easiest would be Get Received Items (Basic).​ Using that action, you would want to supply the following input values:
  • Subject - Asterisk wildcard permitted, eg *Project Update for 'Project Update', 'RE: Project Update' etc.
  • Received Earliest - The earliest date to search from.
  • Received Latest - The latest date to search to.
Note, you do not have to supply both received dates if you want to keep the search open-ended.

Beyond this, the Collection of items that's returned will include the date the specific email was received. As you process the emails in loop your can check the date and perform additional logic.

Hope that helps.

Cheers,

------------------------------
Eric Wilson
Director, Integrations and Enablement
Blue Prism Digital Exchange
------------------------------