Questions tagged [microsoft-graph-mail]

Microsoft Graph Mail refers to the Outlook Mail APIs in Microsoft Graph. This tag should always be used in conjunction with the [microsoft-graph] tag.

484 questions
1
vote
1 answer

Sending email attachment - Converting CSV file to bytes removes line breaks

I'm trying to use the MS Graph cmdlet Send-MgUserMail to send an email and include a CSV attachment. If I do it like this, it works fine, and the attachment is fine. Sample CSV…
swtto
  • 125
  • 2
  • 12
1
vote
3 answers

How to get PidTag properties from Exchange via Graph API

I want to read PidTag properties from a specific e-mail message via Graph API REST call. For singleValueExtendedProperties that is no problem as each of them has a specific GUID and in the filter query parameter can easily search for id with the…
1
vote
0 answers

Microsoft Graph upload large files

I am developing an aplication that send and email with one or multiple attachments via Microsoft Graph, but when try to upload file send me an error: ": Invalid total bytes specified in the Content-Range header" i asume that i must specifi Range…
Ion
  • 549
  • 1
  • 11
  • 25
1
vote
1 answer

How to filter Email Messages by Subject Body & HasAttachments using C# Graph API

var inboxMessages = await graphClient.Me .MailFolders["Inbox"] .Messages .Request() .Select("sender,subject") .Top(5) .GetAsync(); I want to filter the messages by…
1
vote
1 answer

Add multiple recipient while sending mail throws error - python

I have a code that should send mail to multiple recipient , but it throws me error when i use multiple recipients. The error am getting - {'error': {'code': 'RequestBodyRead', 'message': "The property 'Email Address' does not exist on type…
1
vote
1 answer

Request for retrieving email message and expanding attachments doesn't retrieve referenceattachments

retrieving email message expanding attachments doesn't retrieve referenceattachments (that we upload using upload & share from onedrive) If an email contains only reference attachments the list would return empty GET /users/{id |…
1
vote
0 answers

How to get one specific instance (e.g nth occurrance) of a Meeting Series using MS Graph API

In MS EWS API, It was possible to get nth instance of a meeting series by providing series index. We are migrating our EWS implementation to MS Graph. But I could not find an API to do the same. I have found a different implementation to fetch all…
1
vote
1 answer

microsoft graph API - $filter with from email & $search

I need a Microsoft graph API query to retrieve mails based on from email filter & contains a particular word. There are ready API's to do these thing individually. To retrieve mails based on from - email…
1
vote
0 answers

Create a subscription returns error Notification endpoint must respond with 200 OK to validation request

I've been trying to create a subscription to a user's outlook mail inbox using Microsoft Graph. I've defined all the necessary grants/rights on Azure AD. (Mail.Read, Mail.ReadWrite) My create_subscription method is defined below: def…
1
vote
1 answer

How to get imap access to MS Office 365 mails using python with OAuth2

Recently Microsoft has deprecated support for basic authentication to access Office 365 email accounts. Like some other developers, we now have an application that is now broken because of the change. From what I can tell, the code below should get…
1
vote
0 answers

What should be my application s behavior when I receive error 400 code : InvalidStart during an attachment file upload?

I had an issue similar to https://learn.microsoft.com/en-us/answers/questions/504422/graph-return-exception-message-34invalid-start-off.html when I was trying to add some file attachments on an email I had random errors 400 code : InvalidStart My…
1
vote
1 answer

Should we refresh Token when using UsernamePasswordCredential with msgraph-sdk-java

I am using the msgraph-sdk-java to read Emails from Exchange Online with a User scope by using UsernamePasswordCredential authorization. I create a client with lazy initialization and then continue to use it, where I had assumed Client would…
1
vote
0 answers

Unable to find user in 'me/people' even with 'X-PeopleQuery-QuerySources' set to 'Mailbox,Directory'

Per various sources (e.g. here) when using the me/people endpoint, when I set the header X-PeopleQuery-QuerySources to Mailbox,Directory I should be able to retrieve any user in the directory, not just direct contacts. I've tried this previously…
Hilton Giesenow
  • 9,809
  • 2
  • 10
  • 24
1
vote
1 answer

Azure & Microsoft Graph: Access denied accessing inbox, using Client Secret

We tried to setup the simplest possible application for reading emails from a mailbox in our organization, using Microsoft Graph. It's a background service so we used ClientSecretCredential as authentication strategy. Here is the code: var…
1
vote
0 answers

Unable to cast object of type NullableData[ExDateTime]' to type 'DateTimeData' when calling Me.MailFolders[id].Messages.Delta

Two days ago we started getting the following error when using the Microsoft Graph SDK and calling GraphServiceClient.Me.MailFolders[id].Messages.Delta() for one of our customers: Unable to cast object of type…