Outlook Node - Get Message - Test - Ignores filters and returns old emails

Information on your n8n setup

  • **n8n version:1.76.3
  • **Database (default: SQLite):PostGres
  • **n8n EXECUTIONS_PROCESS setting (default: own, main):own
  • **Running n8n via (Docker, npm, n8n cloud, desktop app):docker
  • Operating system:

The Outlook node to get many messages, ignores the filter
‘received after’ - {{ $now.minus(1.5, ‘day’) }}

Also, the filter query
from/emailAddress/address eq ‘[email protected]’ or from/emailAddress/address eq ‘[email protected]

Also, ‘Has attachments is turned on’

If I click Test Setup - I get emails from a couple of years ago, from the second emailaddy that don’t have any attachments.

The node doesn’t read and apply its config.

Hey @LukePWilkins,

I hope you have already solved this issue, but if not:

Sometimes converting datetime to string solves this issue.
You can simply add .toString() to your expression to test that.

Also, try making simples filters and see if they work, before increasing the complexity with that filter query. That way you can troubleshoot what is making the request go nuts hahah

:point_right: If my reply answers your question, please remember to mark it as a solution.