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

Machine Learning – Building a Pet Detector in 30 minutes using Tensorflow

Ever wondered what breed that dog or cat is? In this show, you’ll see us train, optimize and deploy a deep learning model using Azure Notebooks, Azure Machine Learning Service, and Visual Studio Code using Python. We use transfer learning to retrain a mobilenet model using Tensorflow to recognize dog and cat breeds using the…

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

IoT : How to build .NET Core to build applications for IoT?

Do you know that .NET core to build applications for IoT? .NET Core can be used to build applications for IoT devices and scenarios. IoT applications typically interact with sensors, displays and input devices that require the use of GPIO pins, serial ports or similar hardware. The Raspberry Pi is commonly used for IoT applications….

2

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…


Azure IOT: IOT Toolkit extension for VS Code

Do you use Microsoft VS code to build applications? Are you a Azure IOT developer? Do you know that using VS code to develop with Azure IOT Hub? Yes, there’s a VS Code extension to develop with Azure IoT Hub. If you didn’t, then dont miss this new episode of the IoT Show. See how…


Microsoft Graph API developer – Using GetSchedule API to get free/busy availability information

Now you can use the GetSchedule API (when I publish this article, its available in /beta endpoint) to get the free/busy availability information for a collection of users, distributions lists, or resources, for a specified time period. You can use it simply by calling, POST /me/calendar/getSchedule POST /users/{id|userPrincipalName}/calendar/getSchedule Let me play with this API call…

4

Microsoft AI & ML developer – Video Moderation with Content Moderator

Content moderation is the process of monitoring for possible offensive, undesirable, and risky content. Content Moderator, a Cognitive Services product, combines machine-assisted content moderation APIs and human review tool for images, text, and videos into a complete content moderation solution. In this episode, Sanjeev & Seth will get an overview of Content Moderator and learn…

6

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

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