List Messages Rules
Get all the message rule objects defined for the user's inbox.
External Documentation
To learn more, visit the Microsoft Outlook documentation.
Parameters
Parameter | Description |
---|---|
User ID | The ID or userPrincipalName of the user. |
Example Output
{
"@odata.context": "https://graph.microsoft.com/v1.0/$metadata#Me/mailFolders('inbox')/messageRules",
"value": [
{
"id": "AQAAAJ5dZp8=",
"displayName": "Remove spam",
"sequence": 1,
"isEnabled": true,
"hasError": false,
"isReadOnly": false,
"conditions": {
"subjectContains": [
"enter to win"
]
},
"actions": {
"delete": true,
"stopProcessingRules": true
}
},
{
"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
List Messages Rules with Microsoft Outlook and Send Results Via Email