Ballerina connector for Microsoft Outlook Calendar is connecting the Calendar API in Microsoft Graph via Ballerina language easily. It provides the capability to perform CRUD (Create, Read, Update, and Delete) operations on Event & Calendar stored in Microsoft OneDrive.

This module supports the Microsoft Outlook Calendar API version 1.0.


Before using this connector in your Ballerina application, complete the following:


To use the outlook calendar connector in your Ballerina application, update the .bal file as follows:

Step 1: Import MS Outlook Calendar Package

import the ballerinax/microsoft.outlook.calendar module into the Ballerina project.


Step 2: Configure the connection to an existing Azure AD app

You can now make the connection configuration using the OAuth2 refresh token grant config.


Step 3: Invoke connector operation

  1. Now you can use the operations available within the connector. Note that they are in the form of remote operations. Following is an example on how to create a calendar using the connector.
  1. Use bal run command to compile and run the Ballerina program.

You can find more samples here

Other versions