O365 mail rules / categories

Hi,

I am setting up an O365 email workflow to auto categorise email and setup more complex rules than outlook can handle.

I have the workflow connected to the mailbox and can list email. I’ve added a switch node.
Then I created a rule based on the subject - if it includes certain keywords. But I need to add an AND which checks if the {{ $json.sender }} contains certain keywords as well.
Is this possible under the Switch node Rules? Or should I be using a different node?
My aim is to then either categorise the email and/or/both foward the email

It looks like your topic is missing some important information. Could you provide the following if applicable.

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

Hi,

So I have gotten to this point where I am trying to assign a category and move the email to another folder. But I am getting the below

These are my API permissions

I think the issue was using a shared mailbox. It was looking at the owner, not the actual shared mailbox. So I authenticated with the actual mailbox and is now working by the looks of it

This topic was automatically closed 90 days after the last reply. New replies are no longer allowed.