EWS API throws error “No Mailbox with such GUID”

Recently i was working with an ISV/application developer, who created this custom application using EWS (Exchange Web Services) API. It worked with the account with impersonation rights to access other mailboxes/calendars in Azure/Office 365/Exchange Online. But when they tried to access a specific mailbox calendar, they see the error “No mailbox with such GUID”. We…


Deep dive # 2: How to configure Exchange on-premise Server hybrid integration with Office 365/Azure Infrastructure and test REST API calls?

So this post is dedicated for Exchange/Office 365/Azure administrators, as they came back after checking the deep dive # 1 blog with few queries. /api virtual Directory: CU3 introduces a new virtual directory to support the REST API, the /api virtual directory. So the API virtual directory is available in Exchange 2016 CU3 or newer…


Deep dive # 1: How to configure Exchange on-premise Server hybrid integration with Office 365/Azure Infrastructure and test REST API calls?

This is one of the regular discussion that comes across at my desk, how we can configure Hybrid Exchange on-premise server integration with Office 365/Exchange Online, so that users can make use of REST API. So I thought let me stitch all of them together which can be handy for both the Exchange administrators and…

7

Office.js web add-in throws HTTP 401 Unauthorized

One of my dev customer, created Outlook Web add-in (using Office.js/JavaScript) and tried calling EWS call (mailbox.makeEWSRequestAsync method). It throws HTTP error 401 for mailbox.makeEWSRequsetAsync() method. They noticed the error or behaviour when they tested with Outlook on the Web and Outlook Web Access for devices. The API call throws, the following HTTP error: “The…


Graph Developer: Microsoft Graph API fails with error RESTAPINotEnabledForComponentSharedMailbox

One of my customer tried accessing the Graph/REST API call using Microsoft Graph API in their mailbox and they get error “RESTAPINotEnabledForComponentSharedMailbox”. It worked for their couple of other mailboxes, but failed for this given mailbox. Their error stack (detailed one) looked like the following: {     “error”:     {         “code”: “RESTAPINotEnabledForComponentSharedMailbox”,         “message”:…

2

Office.js: MakeEWSRequestAsync throws “The request exceeds the 1 MB size limit. Please modify your EWS request”

One of my customer created Outlook Web add-in (Office.js) and when he calls mailbox.makeEwsRequestAsync method. But they got the following error “The request exceeds the 1 MB size limit. Please modify your EWS request”. At the app level, the developer is making the call from web add-in to create a mail item in drafts folder…


Microsoft Office 365–Using Exchange PowerShell to get Users photo from Microsoft Office 365

You can use the Get-UserPhoto cmdlet to view information about the user photos feature that allows users to associate a picture with their account. User photos appear in on-premises and cloud-based client applications, such as Microsoft Outlook Web App (OWA), Lync, Skype for Business, and SharePoint. Please note that, – This cmdlet is available in…


Debug: Syncing custom EWS app to an Exchange Server 2010 mailbox receive ErrorServerBusy

When you try to synchronize an Exchange Web Service (EWS)-based application to a mailbox in a Microsoft Exchange Server 2010 environment, you receive an ErrorServerBusy response code and an error message that resembles the following: The server cannot service this request right now. Try again later. This error occurs when the server is busy. Exchange…


Microsoft Graph REST API Developer – Getting list of locales, languages supported for the user mailbox

Using Microsoft Graph REST API, you can get the list of locales and languages that are supported for the user, as configured on the user’s mailbox server. You need to use OutlookUser resource type, which represents the Outlook services available to a given user. Request:https://graph.microsoft.com/beta/me/outlook/supportedLanguages RequestHeader: Authorization, Bearer/Token is required Response:If successful, this method returns…


Office 365 Developer: Mail, Calendar, Contacts REST APIs and Hybrid Exchange

If you’re an Azure/Office 365 application developer, then this session is for you. In this Office 365 Developer session (as part of Redmond Interoperability Protocols Plugfest 2017), Deepak Singh, Program Manager, delivered presentation on Mail, Calendar, and Contacts REST APIs and Hybrid Exchange. Please make use of it.


Fixed: In Exchange Hybrid scenario Microsoft Graph REST API query fails due to $select $top $skips commands ignored

Recently i was working with an app developer who’s using Microsoft Graph REST API in their application. They try to query contacts for Exchange 2016 CU5 on premises in a hybrid + Office 365 environment (they had one single mailbox setup in Office 365). When they tested the Graph API query with $select, $top, $skips…

6

Microsoft Office 365, Exchange Developer : How to include EWS Managed API via NuGet in your Visual Studio solution?

As you aware Exchange Web Services (EWS) Managed API provides a managed interface for developing .NET client applications that use EWS. By using the EWS Managed API, you can access almost all the information stored in an Office 365, Exchange Online, or Exchange Server mailbox – on-premises starting from Microsoft Exchange Server 2007, 2010, 2013,…