Connecting a Web App Hosted in Azure to Exchange Online via Graph API

Marcin Wawryszczuk 0 Reputation points
2023-11-24T14:50:46.7066667+00:00

I need to build a connection from a custom web app hosted in Azure (with backend in App Function) to my company's Exchange Online account.

The goal is to connect to one shared inbox of Exchange Online, check emails which came in the last e.g. 1 hour and download attachments from these emails. Is it possible to connect via Graph API?

Should it be like: the web application via Graph REST API calls corporate Exchange Online and then get messaget and attachments for specific account? Is there any better architecture for achieve that?

Microsoft Exchange Online
Microsoft Graph
Microsoft Graph
A Microsoft programmability model that exposes REST APIs and client libraries to access data on Microsoft 365 services.
13,357 questions
{count} votes

2 answers

Sort by: Most helpful
  1. Marcin Wawryszczuk 0 Reputation points
    2023-11-27T09:22:56.1033333+00:00

    Thank you very much for your valuable reply. I assume we can connect the same way to also individual inboxes, not only shared ones?


  2. Deepanshu Sharma 500 Reputation points Microsoft External Staff
    2023-11-29T18:07:28.9666667+00:00

    Yes, it is possible using the Microsoft Graph API. However, you will need to have the appropriate permissions and authentication to do so.

    Here are some steps you can follow to achieve your goal:

    below are some links which can help in process.

    https://learn.microsoft.com/en-us/graph/api/message-get?view=graph-rest-1.0&tabs=http

    https://learn.microsoft.com/en-us/answers/questions/1186134/how-can-i-fetch-emails-from-shared-email-address-%28.

    https://learn.microsoft.com/en-us/graph/api/attachment-get?view=graph-rest-1.0&tabs=http

    0 comments No comments

Your answer

Answers can be marked as Accepted Answers by the question author, which helps users to know the answer solved the author's problem.