You can use the "Get emails" or "When a new email arrives (V3)" trigger with a Search Query in the advanced settings. The Search Query uses the Microsoft Graph OData query language, and you can filter emails by criteria such as date received.
receivedDateTime ge 2024-11-01T00:00:00Z
: Emails received after or on November 1, 2024.receivedDateTime lt 2024-11-10T23:59:59Z
: Emails received before November 10, 2024.Unfortunately, you cannot directly filter based on attachment types in the Search Query. However, you can process the emails in subsequent steps to exclude unwanted attachment types.
Add a Condition:
.exe
, .zip
).@not(endsWith(item()?['Name'], '.exe'))
Filter Attachments in an "Apply to Each" Loop:
In Power Automate Desktop, you can:
If Attachment Name does not end with ".exe" or ".zip"
eetuRobo
18
Super User 2025 Season 1
Nived_Nambiar
10
Super User 2025 Season 1
stampcoin
6