Guidance for Office 365 Mail connector
Read the following information for guidance and best practices when using the Office 365 Mail connector in your flows.
Authentication
Create a connection using an admin or user Office 365 Mail account. See Authorization.
The connection uses delegated access and delegated permissions, not app-only access or app-only permissions.
Reauthorize a connection
If your account successfully creates a connection, you can use this account to reauthorize any existing connections, if the admin hasn't changed any configuration settings.
Types of accounts
Admin accounts can create accounts and manage connection requests from regular users. Regular user accounts may have permission to create a connection or the user account owner may need to request connection approval. See Authorization.
Supported scopes
The following OAuth scopes must be enabled in your Office 365 Mail environment:
- Mail.ReadWrite
- Mail.ReadWrite.Shared
- Mail.Send
- Mail.Send.Shared
- offline_access
Action card or event card-specific limitations
Search Email Options
There are several options to choose from when configuring the Search Email card. When configuring the options fields, ensure that you consider all settings. Results are returned for messages that match the specified fields.
For example, if a user wants to receive the first 200 matching emails with a subject of LifeCycle between a date range of 2022-01-05T09:00:00Z to 2020-01-15T09:00:00Z.
Options
-
Mail: My Mail
-
Search By: Contains "LifeCycle"
-
Date Filter: Range
-
Result Set: First 200 Matching Records
Inputs
-
Receive Date Time Start: 2022-01-05T09:00:00Z
-
Receive Date Time End: 2020-01-15T09:00:00Z
-
Subject: LifeCycle