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
4
votes
3 answers

Get all email message using Microsoft Graph API in c#

I have the following functions to get messages using Graph API var client = new GraphServiceClient(authenticationProvider); var messages = await client.Users["useer@domain.com"].Messages .Request() .GetAsync(); I am only able to get the…
jay
  • 1,055
  • 3
  • 15
  • 35
4
votes
1 answer

Microsoft Graph API unable to Send Email C# Console

I have created a small Console App to send email using Microsoft Graph API. Tutorial Used https://learn.microsoft.com/en-us/graph/api/user-sendmail?view=graph-rest-1.0&tabs=csharp Error ServiceException: Code: NoPermissionsInAccessToken Message:…
4
votes
1 answer

Update mail message body content using Microsoft Graph API

I'm trying to update the content of a received mail message that already exists in my inbox folder using the graph API. For some reason, the message is updated, but then immediately (a few seconds later), the message is reverted back to the original…
Eran Levy
  • 154
  • 10
4
votes
1 answer

Sending email with Microsoft graph API work account

Does anyone know how to request permission to send emails using Graph API by an app that runs without a signed-in user? I have an Azure WebApp with permission to send email using Microsoft Graph. In the Azure portal (Azure Active Directory -> App…
4
votes
1 answer

Microsoft Graph Beta - Convert from EwsId to RestId or RestImmutableEntryId

I'm trying to convert an EwsId to either a RestId or RestImmutableEntryId using the beta version of Microsoft Graph. It works fine to convert RestIds to RestImmutableEntryIds, but so far no luck converting from an EwsId. The documentation is…
4
votes
1 answer

Reading user emails using MS Graph API C#

I'm trying to use MS Graph API to read emails from a specific mailbox. var client = await GetClient(); //getting a client with client id, secret var users = await client.Users.Request() .Filter("startswith(displayName,'roger')") …
Roger Johansson
  • 22,764
  • 18
  • 97
  • 193
4
votes
2 answers

get public folders using microsoft graph API

I am trying to get public folders with no luck and I cannot find anything related to it on microsoft graph documentation, is it possible to get public folders added to any mailbox on the same tenant? Thanks!
3
votes
1 answer

Get all messages in Outlook using Microsoft Graph API

I have a question about Microsoft Graph API for C# code. Is it possible to get all messages which I have in Outlook? I found a good article, but I'm still not getting an answer to my question. The article: Get all email message using Microsoft Graph…
3
votes
1 answer

Calendar event created using Microsoft Graph API. The webLink returned in the response is not working

I created an event in a group calendar using Microsoft graph API. The weblink that is returned in the response after creating a calendar event, is not working. I want to open the calendar event in the read mode using this webLink. The weblink, when…
3
votes
1 answer

Microsoft Graph - Invalid filter clause - conversationId

I am trying to filter by conversationId to get messages and replies for mail, but I am getting an error each time: { "error": { "code": "BadRequest", "message": "Invalid filter clause", "innerError": { …
3
votes
1 answer

Uploading large attachments using Microsoft Graph API under the new throttling restrictions

A recent post in the Office 365 developer blog stated that there will be new upload limits enforced on the graph API and Outlook API: Each application is limited to uploading (POST, PUT, PATCH) 15 megabits every 30 seconds per mailbox. According…
Omri-odix
  • 41
  • 3
3
votes
1 answer

Getting attachments from Microsoft Graph returns wrong size

Using the .NET SDK for Microsoft Graph API to fetch Attachments on an event, returns Attachments where the size property doesn't match the size of the attachment content length. For instance using this code snippet (using the .NET SDK) var…
jbiversen
  • 371
  • 3
  • 14
3
votes
0 answers

Exchange ResolveNames call replace with Graph

Microsoft forces users to switch from EWS to Graph for office online because they will drop support from october 2020…
Dmytro
  • 113
  • 1
  • 7
3
votes
0 answers

Getting all mails from a shared folder in Outlook using Graph API

I am trying to get all mails from a shared folder in the following location (Folder2): \Public folders - me@domain.com\All public folders\Folder1\Folder2 I want to do this using Blue Prism as I am a RPA developer. This means that I am going to use a…
3
votes
3 answers

"The tenant for tenant guid ... does not exist" when using client credentials flow (daemon) to access Microsoft Graph API

I want to access Microsoft Graph periodically from a console application in order to copy messages from an Outlook mailbox to a database. In order to authenticate programmatically, I had to use the Microsoft Graph's "Client Credentials Flow". These…
Luis Gouveia
  • 8,334
  • 9
  • 46
  • 68
1
2
3
32 33