Connect to an azure account using Microsoft Outlook OAuth2 node

Hi I´m able to use https and get a token back form azure.

here the workflow

what I would like to achieve is read all new email and check the attchments after the authentication was success.
I already check lot of tutorials but was not able to found the correct way to manage it.
any hint would be appreciate.

Information on your n8n setup

  • n8n version:
  • Database (default: SQLite):
  • n8n EXECUTIONS_PROCESS setting (default: own, main):
  • Running n8n cloud:
  • Operating system: windows 11

Regards
Aurelien

Describe the problem/error/question

What is the error message (if any)?

Please share your workflow

(Select the nodes on your canvas and use the keyboard shortcuts CMD+C/CTRL+C and CMD+V/CTRL+V to copy and paste the workflow.)

Share the output returned by the last node

Hello @Wafo

Why not using the Outlook node?

You can receive emails and attachments via the MS Graph methods

hello i try the outlook node but when trying to add a credential is always use my privat credentials and not the one that i would like to have maybe I´m making a mistake.

thanks for any hint.

In the meantime i was able to connect with httprequest and have a response but would like to use the Standard Outlook node…

regards
wafo

Standard Outlook node will work only with the predefined Outlook credentials. If you have custom or app-level credentials, you may use only the HTTP Request node. Also, if you would like to use client id and secret, you will need to set up the self-hosted n8n.

yes I managed this.

now I´m trying to save the attachments for the next use

I hope is correct the way Im doing it.

to download an attachment, you will need to use another method. Check the API docs