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”:…

0

Gotchas – Microsoft Graph/Outlook REST API throttling, best practices

In recent times, I was working with this customer where they make Graph API calls, Say, GET https://graph.microsoft.com/v1.0/users/YYY@XXX.onmicrosoft.com/mailFolders/inbox/messages?$skip=0&$top=30&$select=bodypreview,categories,conversationid,from,hasattachments,id,isdraft,isread,lastmodifieddatetime,parentfolderid,receiveddatetime,replyto,sender,sentdatetime,subject,torecipients and few other GET (read operations of mail folders/single item handles specifically) and few POST/PATCH calls. They noticed, once the throttling threshold is exceeded, Microsoft Graph limits any further requests from that client for a period of…

0

Azure/Office 365 Graph API developer: RefreshToken, AccessToken, IdentityToken

These are 3 common terms (Refresh Token, Access Token, Identity Token) in Azure/Office 365 Graph API Cloud developer world and we get tons of queries on this. So let me try to explain them in simple terms … Access Token:- The access token is attached to every REST API request in the authorization header. -…

0

Programmatically created email with attachment shows fields garbled

In recent times I was working with this developer customer. They created a custom application using Outlook Object Model (OOM) API – their app tries to create a new message programmatically with attachments. They notice the newly created items fields (such as the CC, BCC and TO) overlaps or garbled. Based on my tests with…

0

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…

0

Developer: Office 365 APIs and Mobile App Development

Office 365 is built on a mobile-first strategy. Office runs on almost any device these days, so why not your own custom applications? In this session, find out how you can build powerful Office 365 connected applications for any mobile platform. Hope this helps.


Office Developer: Difference between Office Web addin vs COM/VSTO addin

COM or VSTO add-ins are earlier Office integration solutions that run only on Office for Windows. The major difference what you see is that COM addins will be running in the user device or in the Office Client. The new Office Add-ins don’t involve code that runs on the user’s device or in the Office…


Get-UserPhoto cmdlet may throw UserPhotoNotFoundException

Based on my last Get-userphoto blogpost, if you run the Exchange Powershell then you may get the following error: Error on proxy command ‘Get-UserPhoto -Identity:’CN=svcadmin,OU=xxxx.onmicrosoft.com,OU=Microsoft Exchange Hosted Organizations,DC=xxxx,DC=xxx,DC=outlook,DC=com” to server xxxx.xxxx.xxx.outlook.com: Server version 15.20.xxxx.0000, Proxy method PSWS: Cmdlet error with following error message: Microsoft.Exchange.Data.Storage.UserPhotoNotFoundException: There is no photo stored here.    at Microsoft.Exchange.Configuration.Tasks.Task.ThrowError(Exception exception, ErrorCategory errorCategory,…


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…


Support policy statement for Microsoft Graph

As new versions of the Microsoft Graph REST APIs and Microsoft Graph SDKs are released, earlier versions will be retired. Microsoft will declare a version as deprecated at least 24 months in advance of retiring an API or an SDK. So Microsoft Graph too follows the Microsoft Lifecycle Policy. When we increment the major version…

1

Office 365 Devs: Deprecation of Outlook REST API v1.0

As you aware that the Version 1.0 of the Outlook REST API was launched in 2015 to provide API access to mail, calendar, contacts, and other data from Exchange Online. Later we came up with Outlook REST API v2.0 and Microsoft Graph, both of which provide richer features, and better performance and reliability than Outlook…

1

Cloud developer guidance: Microsoft Graph or Azure AD Graph?

This is one of the frequent query which i come across. whenever i talked to my app developer customers community. They wanted to know whether they should be using Microsoft Graph (developer.microsoft.com/graph) or Azure AD Graph (graph.windows.net); also i see good number of discussion threads talking the same. In order to conclude this and provide…