Get Messages Rule
Get message rule object defined for the user's inbox.
- Least privileged Microsoft Graph permission to access the action via application:
MailboxSettings.Read
.
Note: Using the delegated (OAuth) connection type will only allow to insert the connected user's ID.
External Documentation
To learn more, visit the Microsoft Outlook documentation.
Parameters
Parameter | Description |
---|---|
Message Rule ID | The ID of the message rule. |
User ID or User Principal Name | The ID or userPrincipalName of the user. |
Example Output
{
"@odata.context": "https://graph.microsoft.com/beta/$metadata#Me/mailFolders('inbox')/messageRules/$entity",
"id": "AQAAAJ5dZqA=",
"displayName": "From partner",
"sequence": 2,
"isEnabled": true,
"hasError": false,
"isReadOnly": false,
"conditions": {
"senderContains": [
"ADELE"
]
},
"actions": {
"stopProcessingRules": true,
"forwardTo": [
{
"emailAddress": {
"name": "Alex Wilbur",
"address": "AlexW@contoso.onmicrosoft.com"
}
}
]
}
}
Workflow Library Example
Get Messages Rule with Microsoft Outlook and Send Results Via Email
Preview this Workflow on desktop