Hi i have tried creating a rule using UpdateInboxRules API mentioned in this link: https://video2.skills-academy.com/en-us/exchange/client-developer/web-service-reference/updateinboxrules-operation. Rule is created successfully and i can see this rule with GetInboxRules API. Please have a look at attached response. But the rule i have created did'nt showed up in my ecp portal under mail flow -> rules. Any help would be apptreciated.
GetInboxRules API Response:
{
"s:Envelope": {
"@xmlns:s": "http://schemas.xmlsoap.org/soap/envelope/",
"s:Header": {
"h:ServerVersionInfo": {
"@MajorVersion": "15",
"@MinorVersion": "1",
"@MajorBuildNumber": "2242",
"@MinorBuildNumber": "4",
"@Version": "V2017_07_11",
"@xmlns:h": "http://schemas.microsoft.com/exchange/services/2006/types",
"@xmlns": "http://schemas.microsoft.com/exchange/services/2006/types",
"@xmlns:xsd": "http://www.w3.org/2001/XMLSchema",
"@xmlns:xsi": "http://www.w3.org/2001/XMLSchema-instance"
}
},
"s:Body": {
"@xmlns:xsi": "http://www.w3.org/2001/XMLSchema-instance",
"@xmlns:xsd": "http://www.w3.org/2001/XMLSchema",
"GetInboxRulesResponse": {
"@ResponseClass": "Success",
"@xmlns": "http://schemas.microsoft.com/exchange/services/2006/messages",
"ResponseCode": "NoError",
"OutlookRuleBlobExists": "false",
"InboxRules": {
"Rule": {
"@xmlns": "http://schemas.microsoft.com/exchange/services/2006/types",
"RuleId": "AQAAAAAABXY=",
"DisplayName": "Abuse-Rules",
"Priority": "1",
"IsEnabled": "true",
"Conditions": {
"FromAddresses": {
"Address": {
"Name": "Inbox",
"EmailAddress": "test@bn bn .com",
"RoutingType": "SMTP"
}
}
},
"Actions": {
"Delete": "true",
"StopProcessingRules": "true"
}
}
}
}
}
}
}