outlook-restapi

Is it possible to get shared mailbox mails using outlook mail api

孤街醉人 提交于 2019-12-24 11:42:42
问题 I am using outlook mail api, and trying to get emails from a shared mailbox. Currently the mails of the user mailbox are fetched. I cant find a way to keep the same user but different mailbox. 回答1: No, it isn't (at least not currently). When you use the Authorization Code Grant flow to log in a user, the user consents only to allow the app to access their information. That consent doesn't include other folks information that they've shared with that user. If you change your application to use

how to get all tasks from outlook with Microsoft Graph or Office 365 REST API?

二次信任 提交于 2019-12-24 10:56:17
问题 I am building a web application that needs to fetch all tasks from an organization that uses Outlook Task. Can this be done with Microsoft Graph or Office 365 REST API? I haven't found any calls in the documentation of either services that would do something similar to that: https://outlook.office.com/api/v2.0/tenant/tasks Should I find another approach or is it something that is doable? 回答1: Outlook Tasks is available in Preview on Microsoft Graph today: GET /users/{id|userPrincipalName}

What is the purpose of the new “Read user and shared mail” delegated scope in Azure AD portal for Office 365 Exchange Online

故事扮演 提交于 2019-12-24 08:36:42
问题 What is the purpose of the new delegated scope "Read user and shared mail" in Azure AD for Office 365 Exchange Online. Is it for accessing shared mailbox with Outlook REST Api? It seemed impossible until now. Is there some documentation available? Is this scope requires admin_consent ? ? 回答1: Yes. This permission is used for accessing the messages from the shared mailbox. However we need to specify the shared mailbox we want to retrieve the messages from. Here is an example for your reference

Get all messages from Outlook API

▼魔方 西西 提交于 2019-12-24 08:35:29
问题 I'm consuming the Outlook API, attempting to access all messages from an inbox which contains ~45,000 messages (and other folders such as Sent Items). The main request I'm making is to https://outlook.office.com/api/v2.0/me/messages. If I add ?$count=true, the "@odata.count" value is returned as -1. I can add $top=500 to the request which gives me 500 messages returned and an "@odata.nextLink" , but if I pass $top=5000, there's no "@odata.nextLink" which I'd expect to see. A few particular

400 Bad request error on using Microsoft Graph API to subscribe to Outlook Push Notifications

落花浮王杯 提交于 2019-12-24 04:06:09
问题 I am trying to create a subscription to get Outlook emails @mentions via Push Notification using Microsoft Graph API. I am using this documentation for reference/ I created an app in portal.azure.com and provided Required permission on "Read user mail" under "Microsoft Graph" API and admin consented it through Microsoft Demo tenant. But I am still not able to subscribe to the Microsoft Graph Push Notification REST API and I am getting 400 Bad Request error. I also tried granting all

outlook.com rest api incorrect organizer email

岁酱吖の 提交于 2019-12-23 22:55:17
问题 When a user has created an event in outlook.com shared calendar, the REST API tells that calendar owner is organizer. I have one calendar in Outlook.com and I'm syncing all calendar event's to my server with a calendar subscription. I get notifications when something happens and there is url in the notification which I can use to get object of that newly created event. I have now another user in outlook.com and I have shared my calendar to him. When he does something in that shared calendar I

Filtering on iCalUId returns empty array if event is part of a series

狂风中的少年 提交于 2019-12-22 11:35:40
问题 My question is nearly identical to this question. I would have just commented over there but am unable to do so due to being a new user. My request to https://graph.microsoft.com/v1.0/me/events?$filter=iCalUId eq '<iCalUId>' returns the event object if I am querying a singleInstance event (this is expected). However, it appears that if the event is part of a series I get back an empty array. I'm not sure if I am missing something or if this is expected behavior. I've scoured MS Graph docs

Obtain access token for both Microsoft Graph and individual service API endpoints (Outlook REST APIs etc.)

自闭症网瘾萝莉.ら 提交于 2019-12-22 09:21:32
问题 I spent some time playing around with Azure AD OAuth 2.0. An access token obtained with scope https://outlook.office.com/mail.read throws 401 Unauthorized when used with Microsoft Graph. Similarly, an access token obtained with scope https://graph.microsoft.com/mail.read throws 401 Unauthorized when used with Outlook REST API endpoints. Also, I get an error if I mention both the scopes while authorizing a user. Is it possible to have access tokens that allow access to both Microsoft Graph and

Office Add-in Outlook API attach document using displayNewMessageForm method issue

依然范特西╮ 提交于 2019-12-22 00:08:30
问题 I'm working on office Add-in for Outlook. Need to open a new message with a pre-defined attachment. Trying to get an attachment from the current item (message) as below: Office.context.mailbox.item.attachments Here is an output (i get attachment type, id, size and so on): Then I'm trying to attach this file to a new message in Outlook via add-in outlook API, here is an example from Office Developer that I use to attach the file I just get from the other email (like 'forward' functionality):

Read emails from exchange online (Office 365) through windows forms application

馋奶兔 提交于 2019-12-21 09:25:24
问题 I am trying to read emails from my O365 mailbox through a windows forms application. I want my application to read emails from O365 mailbox using my username and password. Is it possible to access the O365 api without registering the application on the Azure? (only using user credentials) I followed this article on msdn, https://msdn.microsoft.com/en-us/library/office/dn567668(v=exchg.150).aspx I have an issue in this line: result = context.AcquireToken(resourceId, ClientID, _returnUri); //