Creates an instance of Microsoft365WorkflowIntegration.
The configuration object for the integration.
const microsoft365Integration = new Microsoft365WorkflowIntegration({
connect: {
clientId: microsoft365Config.clientId, // Client ID of the registered app
tenantId: microsoft365Config.tenantId, // Tenant ID of the registered app
redirectUri: microsoft365Config.redirectUri // Redirect URI of the registered app. This _must_ be the same domain as the app (providerUrl).
},
});
await WorkspacePlatform.init({
browserOptions: {},
integrations: [microsoft365Integration]
})
The configuration object for the integration.
The name of the integration. Used for Analytics
Connects to the Microsoft 365 API using the provided configuration.
Defaults to the config provided to the constructor, but can be overridden here.
await microsoft365Integration.connect({
clientId: microsoft365Config.clientId,
tenantId: microsoft365Config.tenantId,
redirectUri: microsoft365Config.redirectUri
});
Initializes a given workflow.
This method is automatically called when disableAutoInitialize
is set to false
in the workflow configuration.
Use this method if you need to call it manually (not at platform initialization).
The workflow to initialize.
const microsoft365WorkflowIntegration = new Microsoft365WorkflowIntegration({
connect: {
clientId: microsoft365Config.clientId,
tenantId: microsoft365Config.tenantId,
redirectUri: microsoft365Config.redirectUri
},
workflows: {
search: {
disableAutoInitialize: true
}
}
});
await platformInit({
overrideCallback,
browserOptions: {},
integrations: [microsoft365WorkflowIntegration]
});
await microsoft365WorkflowIntegration.initializeWorkflow('search');
The Microsoft365WorkflowIntegration class is a WorkflowIntegration that provides Microsoft 365 integration. This integration allows you to search for Microsoft 365 entities and perform actions on them using Home.