outlook-restapi

Hybrid environments, 404 with on-premise mailboxes, 200 for Exchange online

百般思念 提交于 2020-07-20 10:37:07
问题 I've written an application which is able to talk to Exchange Online accounts, I'm currently trying to test to see the steps required to get it to work with on-premise accounts running in Hybrid. I have: Windows Server 2012 R2 Exchange 2016 CU8 (with /PrepareAD run) Internet accessible paths to /api/v2.0 and /autodiscover/autodiscover.json Run the HCW AD Connect is running Active Directory is synced to Azure Active Directory Permissions look good on the application that I have registered

Request to get calendar events responses 404, given the permission assigned and accessToken got using Microsoft Graph API

☆樱花仙子☆ 提交于 2020-07-03 12:59:37
问题 I want to build a web application which has the function to get other peoples' calendar events. I has register the app on https://apps.dev.microsoft.com/ and requested Calendars.Read permission. And I'm sure the Admin has consented to assign these permissions (which I let him to do through the adminconsent page). Below is my ASP.Net Controller code aimed to test the Events API. The targeted API is: MicrosoftGraphCalendarApi = "https://graph.microsoft.com/v1.0/users/{0}/events"; public async

Office365 REST API - Calendar event attachments not visible for recipients

不羁的心 提交于 2020-06-28 10:35:44
问题 The add attachment endpoint seems buggy. Files attached to a calendar event are not visible to the calendar recipients. The attachments are visible to the event creator. My code had been working for months until recently, which leads me to believe this is a regression. Steps to reproduce There must be two users - the creator and the recipient. Create an event via https://graph.microsoft.com/v1.0/me/calendars/{calendarId}/events Attach a file to the event via https://graph.microsoft.com/v1.0

Outlook weblink does not always correctly open the mail

余生颓废 提交于 2020-06-13 06:59:25
问题 When I'm getting the property weblink from a message through the outlook API 2.0 REST call, it sometimes works and sometimes doesn't. That's to say: For my testaccount dirk@useitgroup.onmicrosoft.com. When I get the weblink I get something like: https://outlook.office365.com/owa/?ItemID=AQMkAGI...%3D%3D&exvsurl=1&viewmodel=ReadMessageItem. opening this weblink correctly opens the mail after redirecting to something like. https://outlook.office365.com/mail/deeplink?ItemID=AQMkAGI...%3D%3D

Outlook weblink does not always correctly open the mail

血红的双手。 提交于 2020-06-13 06:59:21
问题 When I'm getting the property weblink from a message through the outlook API 2.0 REST call, it sometimes works and sometimes doesn't. That's to say: For my testaccount dirk@useitgroup.onmicrosoft.com. When I get the weblink I get something like: https://outlook.office365.com/owa/?ItemID=AQMkAGI...%3D%3D&exvsurl=1&viewmodel=ReadMessageItem. opening this weblink correctly opens the mail after redirecting to something like. https://outlook.office365.com/mail/deeplink?ItemID=AQMkAGI...%3D%3D

Add events in Outlook Calendar swift 5

99封情书 提交于 2020-03-06 10:58:16
问题 I have fetching all the events now I want to add events in Outlook. can anyone help me on this that how can i add event in outlook. I am following this link for fetching: https://docs.microsoft.com/en-us/outlook/rest/ios-tutorial There is not documentation for add events. Please check this code.. this code works for getEmailAddress and getAllInbox. I check in SO not finding how can i add event. Please help! Thanks!! import Foundation import p2_OAuth2 import SwiftyJSON class OutlookService { /

Office 365 Outlook REST API - Office.context.mailbox.displayMessageForm not working on Mac Outlook

送分小仙女□ 提交于 2020-03-05 03:25:48
问题 I'm currently facing an issue with Outlook object model of the API in all versions from v1.1 and higher on Mac Outlook 2016 (V16.15.0 and up). The method Office.context.mailbox.displayMessageForm is not working on Outlook for Mac. On Windows as well as on the online versions everything is working fine. Current situation: I wrote an outlook add-in which creates a new draft of an email (saved in draft folder via usage of EWS envelope) and opens the new draft by using the outlook add-in API

How to revoke access to Microsoft APP for a user in php

偶尔善良 提交于 2020-02-04 04:11:06
问题 I've searched long and hard about how to revoke access to the Microsoft APP for a user account in PHP or any programming languages for that matter but couldn't find it... There doesn't seem to be any msdn docs for achieving it... nor any API URL Endpoints in "login.microsoftonline.com". Should we just remove the token in our web app database and just leave it? but while accessing the account settings -> security and privacy -> connected apps the app is still there... Plzzz someone share the

How to revoke access to Microsoft APP for a user in php

夙愿已清 提交于 2020-02-04 04:10:25
问题 I've searched long and hard about how to revoke access to the Microsoft APP for a user account in PHP or any programming languages for that matter but couldn't find it... There doesn't seem to be any msdn docs for achieving it... nor any API URL Endpoints in "login.microsoftonline.com". Should we just remove the token in our web app database and just leave it? but while accessing the account settings -> security and privacy -> connected apps the app is still there... Plzzz someone share the

Outlook API OAuth2 offline acces / permanent access using php

老子叫甜甜 提交于 2020-01-21 07:15:06
问题 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 回答1: 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