I want to automate the process of 'Test And Enable Mailbox' so that it runs every Saturday. I tried triggering 'TestAndEnableMailbox' action via flows but I got the error 'Resource not found for the segment 'TestAndEnableMailbox'. We tried implementing the same using plugins but again encountered the error 'Action 'Perform_an_unbound_action' failed: Request not supported TestAndEnableMailbox#2011/Organization.svc'.
What is the action that gets implemented when we click 'Test And Enable Mailbox' in email configuration in advanced settings in CRM?
Hi,
The “Test and Enable Mailbox” button doesn’t actually call a simple API action that can be triggered directly. It’s running a set of internal processes: validating the mailbox settings, checking credentials, testing server-side sync with Exchange, and then updating the mailbox record status if those tests succeed. That’s why trying to hit TestAndEnableMailbox as a direct action through Flow or plugins fails — that request isn’t exposed as a supported API endpoint.
TestAndEnableMailbox
If your goal is to automate mailbox validation on a schedule, there are two practical approaches:
Rely on server-side sync auto-tests – once a mailbox is approved and enabled, Dynamics runs periodic tests in the background. In most cases, you don’t need to keep re-triggering “Test and Enable” unless something changes (passwords, mail server settings, etc.)
Use a workaround with custom jobs – instead of trying to call the hidden action, you can create a scheduled job that either:
Updates the mailbox record (like changing the last test timestamp) to prompt Dynamics to re-run a test, or
Uses the OrganizationRequest “TestMailboxRequest” (different from “TestAndEnableMailbox”) which is exposed in the SDK, though it’s not officially documented for automation
Unfortunately, there isn’t a supported way to fully automate clicking “Test and Enable Mailbox” every week. Microsoft’s design is that once a mailbox is enabled, ongoing testing happens automatically in the background.
If this is tied to compliance or audit needs, the best approach is usually to monitor mailbox alerts and send notifications if a mailbox becomes inactive, rather than trying to force the re-test on a timer.
Under review
Thank you for your reply! To ensure a great experience for everyone, your content is awaiting approval by our Community Managers. Please check back later.
As AI tools become more common, we’re introducing a Responsible AI Use…
We are honored to recognize Abhilash Warrier as our Community Spotlight honoree for…
These are the community rock stars!
Stay up to date on forum activity by subscribing.
Rishabh Kanaskar 258
MVP-Daniyal Khaleel 167
Tom_Gioielli 116 Super User 2025 Season 2