Office 365 Get Email, suing Filters

Team,

I am currently using Office 365 Get Email activity in which i need to use Query.
I want to select the emails which consists of below three -

  1. From - abc@forum.uipath.com
  2. Subject - UiPath Forum
  3. Body - UiPath

Any suggestions how can create query for the same ?
Thanks in advance

@prerna.gupta
ā€œFrom:abc@forum.uipath.com AND Subject:ā€˜UiPath Forumā€™ AND Body:ā€˜UiPathā€™ā€
try this one in filter property of get outlook mails activity
Thanks

1 Like

To create a query for selecting emails based on the sender, subject, and body, you can use the following syntax in the Office 365 Get Email activity:

From:abc@forum.uipath.com AND Subject:ā€˜UiPath Forumā€™ AND Body:ā€˜UiPathā€™

This query will select all emails that are from the specified sender, have the specified subject, and contain the specified keyword in the body. You can modify the email address, subject, and keyword as per your requirements.

Note that the query syntax is case-insensitive, so you donā€™t need to worry about the case of the keywords. Also, make sure to enclose the subject and body keywords in single quotes to avoid any syntax errors.

1 Like

Hey @prerna.gupta

Be sure to check out this post which has many examples.

I would wrap each of the three requirements in brackets using ā€œANDā€ to separate each set of brackets

Hopefully this helps :blush:

Cheers

Steve

1 Like