The idea is:
Add a “Sender Domain” filter to the Microsoft Outlook Trigger. The trigger then emits only the emails whose sender address is in that domain or in one of its subdomains.
For example, example.com matches alice@example.com and bob@mail.example.com. It does not match carol@notexample.com.
My use case:
A partner sends us a daily email with a CSV attachment. The person on duty that day sends it, so the sender address changes. The domain is always the same.
The current “Sender” filter matches one exact address or display name. So today the trigger must emit every email with an attachment, and a later node must drop the emails from other senders.
I think it would be beneficial to add this because:
Many teams receive reports and notifications from a domain, not from one address. A domain filter in the trigger keeps unrelated emails out of the workflow. It also removes the executions that only drop an email.
Any resources to support this?
- Microsoft Graph
$filterdocumentsendswithonly for directory objects, not for message properties: Use the $filter query parameter to filter a collection of objects - Microsoft Graph | Microsoft Learn $searchsupportsfrom:, but Graph does not allow$searchtogether with$filteron messages: Use $search Query Parameter in Microsoft Graph APIs - Microsoft Graph | Microsoft Learn
So the trigger must match the domain after it fetches the messages.
Are you willing to work on this?
Yes. I have an implementation with unit tests. I will open a pull request that links to this topic.