microsoft-graph-mail

Microsoft Graph API - SendMail http 400 - API url from documentation not working

假装没事ソ 提交于 2019-12-04 01:55:47
My application sends email using Microsoft Graph. We followed the documentation , this was working as expected for almost a year: https://graph.microsoft.com/v1.0/users/me/microsoft.graph.sendmail Since 3/8/2019, the same code sendmail API in PROD started failing with the HTTP 400 - Bad Request : { "error": { "code": "TargetIdShouldNotBeMeOrWhitespace", "message": "Id is malformed.", "innerError": { "request-id": "0de5a4eb-dac4-4d98-a4b4-178e503a6657", "date": "2019-03-19T17:16:20" } } } As a part of the investigation, we found that the SendMail documentation has a different URL used in the

Why do I get Gateway Timeout whenever my MS Graph API mail search finds no results?

给你一囗甜甜゛ 提交于 2019-12-01 18:22:20
As of this week I am suddenly getting gateway timeout from Graph when my mail search finds no results. I am using a query like this one: https://graph.microsoft.com/v1.0/users/shared@notreal.com/mailFolders/AllItems/messages?$search="participants:some.person@fake.com"&$select=from,subject,HasAttachments,Id,SentDateTime&$top=100 This is a Graph query which requests up to 100 emails from the Office 365 mailbox of shared@notreal.com where the sender or receiver includes some.person@fake.com . shared@notreal.com is a mailbox that is shared with the account making the call. My app is authenticated

Exchange 2016 on-premise mailbox access using Graph API (Hybrid Setup)

蹲街弑〆低调 提交于 2019-11-30 09:21:06
问题 I have a mailbox in on prem exchange server (which is in hybrid mode) abc@onprem.com and i am trying to access this via graph api (/messages). This works perfectly if i do this in graph explorer, but fails when i do via implementation. Required application permission is given in Azure app registration portal. Implementation uses grant_type as client_credentials with certificate and this works perfectly for cloud users. Response of API { 'error': { 'innerError': { 'date': '2019-02-28T14:17:45'