A Microsoft Flow connector to connect to the Office 365 Service Communications API
This Flow custom connector allows you to connect to the Office 365 Service Communications API and query the following from the API:
- Get Services: Get the list of subscribed services
- Get Current Status: Get current service status including any incidents
- Get Historical Status: Get historic service status including any incidents
- Get Messages: Get Incidents, Planned Maintenance, and Message Centre communications.
As it's a connector for Flow you only need to configure authentication in a single place and actions can be reused multiple times across Flows.
Before you can use the connector, you will need to create an Azure AD application and assign permissions to be able to read the Office 365 service.
- Login to Azure at https://portal.azure.com
- Under Azure Active Directory, go to App registrations and select New registration
- Give the application a name and set as Single Tenant and select Register
- Make a note of the Application (Client) ID for the Flow connector
- Under API Permissions, assign the ServiceHealth.Read Application permission under Office 365 Management APIs
- Under Certificates and secrets, create a New client secret. Once created make a note of the Client secret for the Flow connector
- Leave the page open as you will need one further change after importing the connector
- Either clone download the connector .json file
- Login to https://flow.microsoft.com
- Under Data, select Custom connector
- Select New custom connector and Import an OpenAPI file
- Give the connector a name e.g. Office 365 Service and select the .json file
- Under Security, enter the Application (Client) ID and Client secret you took note of earlier. Set the Resource URL to https://manage.office.com and select Create connector
- The Redirect URL should now be populated in the Security section. Copy this
- Go back the Azure AD application and select Redirect URI. Add the copied URL and put this as a Web URI