Graph API forward mail

Eric Faro 20 Reputation points
2024-05-03T15:18:58.1966667+00:00

I'm trying to use the endpoint, POST /users/{id | userPrincipalName}/messages/{id}/forward (https://learn.microsoft.com/en-us/graph/api/message-forward?view=graph-rest-1.0&tabs=http). I'm able to send, search and get mail, but whenever I try this "forward" endpoint, I get a (500) Internal Server Error. Has anyone had success with forwarding mail?

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

Accepted answer
  1. Deepanshu Sharma 490 Reputation points Microsoft Vendor
    2024-05-05T14:00:14.3866667+00:00

    Hi Eric Faro,

    I tried the same API on graph explorer and it worked from me with status code 202!

    Let’s explore some potential solutions to address this issue:

    1. Network Issues:
      • Sometimes unexpected network glitches can cause the error. These issues might be related to connectivity, DNS resolution, or other network-related problems.
    2. Permission Issue:
      • Check for proper permissions given to the application.
    3. Use Microsoft Graph Explorer:
      • Check same Api on the Microsoft Graph Explorer if its working fine.
    4. Incognito Mode or Private Mode:
      • Use incognito mode (private browsing) in your browser to access the Microsoft Graph API.

0 additional answers

Sort by: Most helpful