Hello friends,
I would really appreciated if you could help me with this problem.
I need to create an activity to check if my outlook have received an email.
The email i am waiting for has a subject with a specific string subject like “prd” and it has today’s date as received . between 8:00 - 8:50 am.
My question is:
how to build an activity to check if i received this email having today’s date , between 8 to 8:50 am and subject that complies with string “prd” .
if this email exist , so that , i would like it to be send to another email adress…
i was thinking to use an while or do-while activities…
i’d really appreciated any help or advice.
thanks
Ricchch
Hi, you can use Get Outlook Mail Messages (the account need to be configured in outlook app)
Then you can use filter property to check if you received the email based on your requirements. After send the email, you can move to another folder or check the property MarkAsRead when get the emails to prevent get the same email twice
Then you can use For Each Email Activity to loop the retrieved email
A list of filter examples can be found here in Filtering Examples section
Get Outlook mail messages.
• For each mail
If (subject contains (“”) and ( ReceivedDate < your date and ReceivedDate > your date)
{ catch your emails}
Filter email in Get Outlook mail messages property panel like below
“@SQL=(urn:schemas:httpmail:datereceived< ‘01/01/2023 08:00AM’) AND (urn:schemas:httpmail:datereceived > '‘01/01/2023 08:30AM’) AND (urn:schemas:httpmail:subject LIKE ‘%your-mail-subject%’)”