outlook-restapi

Outlook REST API Get MIME content of ItemAttachment with ReadItem permission

試著忘記壹切 提交于 2019-12-06 09:32:18
问题 The Outlook REST API we are trying to use is outlook.office.com/api/v2.0/me/messages{messageId}/attachments/{attachmentId}/$value to retrieve the raw contents of an ItemAttachment (contact, event, or message) in MIME format as described here https://docs.microsoft.com/en-us/graph/outlook-get-mime-message. Getting the MIME contents only works with the ReadWriteMailbox permission, but we would like it to work with ReadItem. We are able to retrieve FileAttachments without the elevated permission

Outlook API to forward email as attachment

独自空忆成欢 提交于 2019-12-06 07:10:56
I'm currently developing an Outlook Add-in and trying to add a feature to forward an email as an attachment. Can anyone please advice what the simplest way to accomplish it? I cannot find a single API to do it in Outlook Mail REST API reference . Is there any easier way instead of using the 3 different APIs? CreateForwardDraft UpdateMessages SendDraftMessages Outlook Add-ins Team - MSFT There is an API - addItemAttachmentAsync which can add an email as an attachment. Currently, the forward functionality you requested is not a part of the product. However, we track Outlook add-in feature

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

℡╲_俬逩灬. 提交于 2019-12-06 05:46:24
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 (including here and here ) and have not been able to find a reason for this behavior. Any help with this

Access to other user's calendar in Office 365 API

只谈情不闲聊 提交于 2019-12-05 22:54:04
问题 I'm building a WPF-app that's doing a summary of several user's calendar in the organization. The Company is using Office 365 so I thought that the Office 365 API would be the best way to go. I've managed to access my own calendar, but I don't know how to access my colleagues' calendars. Is it possible? I also need to list the GAL in order to pick which users I wolud like to include in the summary. 回答1: [UPDATE] Service account support is available now for REST APIs. Please see Building

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

走远了吗. 提交于 2019-12-05 21:20:56
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 Outlook REST API endpoints? I am building an emailing app. Initially, I will build basic features like

Outlook API OAuth2 offline acces / permanent access using php

荒凉一梦 提交于 2019-12-05 09:37:20
I followed the tutorial below to get mail using outlook api. This works, but requires the user to login every time to give access. Is there a way to give permanent / offline access? Similar to how gmail api works (access to when your not at your keyboard) https://dev.outlook.com/RestGettingStarted/Tutorial/php Absolutely! In order to get offline access, you need to add the offline_access scope to your requested scopes. This will result in a refresh token being sent along with your access token. You can use the refresh token to get a new access token when the current one expires. See the

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

扶醉桌前 提交于 2019-12-04 17:48:16
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): Office.context.mailbox.displayNewMessageForm( { toRecipients: Office.context.mailbox.item.to, // Copy

Failed to acquire token silently. Call method AcquireToken

六眼飞鱼酱① 提交于 2019-12-04 16:49:36
I am trying to get some calendar items from outlooo 365 API The code I got from the sample is this: public async Task<ActionResult> Index() { // fetch from stuff user claims var signInUserId = ClaimsPrincipal.Current.FindFirst(ClaimTypes.NameIdentifier).Value; var userObjectId = ClaimsPrincipal.Current.FindFirst(SettingsHelper.ClaimTypeObjectIdentifier).Value; // discover contact endpoint var clientCredential = new ClientCredential(SettingsHelper.ClientId, SettingsHelper.ClientSecret); var userIdentifier = new UserIdentifier(userObjectId, UserIdentifierType.UniqueId); // create auth context

Does Exchange Server (in-house) suppport REST API?

倾然丶 夕夏残阳落幕 提交于 2019-12-04 12:14:17
问题 This document that applies to Exchange Server suggests that the bulk of API / Web Services is SOAP based: https://msdn.microsoft.com/en-us/library/office/dd877012(v=exchg.150).aspx However i see that Office 365 (which i assume is cloud based) supports a REST API. https://msdn.microsoft.com/en-us/library/office/dn776319(v=exchg.150).aspx But there it says that this documentation applies to Exchange Online / Office 365 only. So if i have an in-house Exchange Server, will it also support REST?

Office365 Unified API, get calendar ID from Events ID

泄露秘密 提交于 2019-12-04 06:33:10
问题 Every Event belongs to a Calendar, so when I receive a webhook from Outlook API management about a calendar event, I expect to also receive the container ID of this Events, but no. I get very little information about this calendar event, but still there is an ID. The problem how to get the ID of the calendar itself that holds this event? I use unified API for querying this, and all I get so far is GET https://graph.microsoft.com/beta/me/Events/< ID > But guess what, nowhere inside this