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…

0

Debug: Graph API throws HTTP 403 with $filter for some users

In recent times, i worked with one of the ISV developer who reported that for some users when they use $filter with Graph API calls throws HTTP 403 – Forbidden. The same call works fine with $filter for most of the users. We chased and found it happens for some users (and not for all…

0

App developer guidance – Microsoft Graph API

Well, you might be using Microsoft Graph or Office 365 REST API or Azure AD Graph API’s, where you may see some functionality is not yet available in Microsoft Graph when compared to Office 365 REST APIs or Azure AD Graph APIs. In that case, I would suggest the following guidance: For Office 365, if…

0

Graph API : Subscription lifetime changes for Outlook resources

If your application uses user tokens to create subscriptions to Outlook resources, then you need to update your apps as needed to handle this scenario. This only applies to applications that use user tokens to create subscriptions. Applications that use app tokens to create subscriptions are not affected by this change. Existing applications do not…

0

Office 365 Reporting Web Service API developer queries related to response limit, permissions, reports!!

As you aware that the Office 365 Reporting web service enables developers to integrate information on email and spam, antivirus activity, compliance status, and Lync Online activities into their custom service reporting applications and web portals. These are few frequent queries that I come across Office 365 Reporting Web Service API developers – so I…


Outlook Developer: Outlook Object Model API, IRM, Do not forward option

With Outlook Object Model (OOM) API, now you can access the Outlook mail item and its permission property programmatically. You can set the Permission property – using that you can set or returns an OlPermission constant that determines the permissions the recipients will have on the e-mail item. C++ public: property Microsoft::Office::Interop::Outlook::OlPermission Permission { Microsoft::Office::Interop::Outlook::OlPermission get(); void…


Private preview: Now access the Managed Access to Microsoft Graph Data

Now you can access the Managed Access to Microsoft Graph Data – Yes, you heard it correct. So you can use, Managed Access to Microsoft Graph Data is designed to give administrators new controls over the Office 365 data they provide to application developers who forge insights with that data. It include scenarios for Enterprises…

1

Office 365 Developer – Get the Personal Contacts with Microsoft Graph API

As you aware Outlook contacts lets you store personal contacts’ data, and is part of the Outlook messaging hub in Office 365. Through Outlook, you can manage emails, schedule meetings, find information about users in an organization, initiate online conversations, share files, and collaborate in groups. So now with Microsoft Graph API you can get/pull…


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

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…


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. -…


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…