Get Newest Email (MicrosoftOffice365 Activity)

I have never used this activity, but I have done “get the code from the verification email” just by using the Query property in the Get Mail (Office 365 - Classic) activity inside Microsoft Office 365 Scope.

Typically I tell it just to get the “top 1” email with a received date within the last 5 minutes, or 24 hours, or whatever is appropriate for your automation.

If it returns no emails, then it didn’t find the verification email that was sent. If it finds one, it returns the latest one.

For formulating your Query for the Get Mail activity, this is a great post: Microsoft Office 365 - Get Mail Activity Queries to filter returned emails

1 Like