Today I came across a requirement to get outlook events to SharePoint custom webpart. Thanks to Graph API to ease the work. Here are the steps that we need to follow in order to get events. 1. Register a new app in Azure Active Directory . Here is the blog that i referred. 2. Now its time to get access token using generated client id and secret in previous step. Execute below code to get access token. $.ajax({ type: "POST", crossDomain: true, url: "https://cors-anywhere.herokuapp.com/https://login.microsoftonline.com/<Tenant ID>/oauth2/v2.0/token", headers: { "content-type": "application/x-www-form-urlencoded" }, data: { grant_type: "client_credentials", client_id: "", //ClientId@TenantId ...