web
You’re offline. This is a read only version of the page.
close
Skip to main content
Community site session details

Community site session details

Session Id :
Customer experience | Sales, Customer Insights,...
Unanswered

How can I automate 'Test and enable mailbox' feature in Dynamics 365 CRM?

(0) ShareShare
ReportReport
Posted on by

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?

I have the same question (0)
  • Suggested answer
    erinlubben Profile Picture
    18 on at
    How can I automate 'Test and enable mailbox' feature in Dynamics 365 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.

    If your goal is to automate mailbox validation on a schedule, there are two practical approaches:

     
    1. 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.)

    2. 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.

  • Mansi Soni Profile Picture
    8,830 Super User 2025 Season 2 on at
    How can I automate 'Test and enable mailbox' feature in Dynamics 365 CRM?
    Moved from Dynamics 365 General forum to Dynamics 365 CRM forum.

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.

Helpful resources

Quick Links

Responsible AI policies

As AI tools become more common, we’re introducing a Responsible AI Use…

Abhilash Warrier – Community Spotlight

We are honored to recognize Abhilash Warrier as our Community Spotlight honoree for…

Leaderboard > Customer experience | Sales, Customer Insights, CRM

#1
Rishabh Kanaskar Profile Picture

Rishabh Kanaskar 258

#2
MVP-Daniyal Khaleel Profile Picture

MVP-Daniyal Khaleel 167

#3
Tom_Gioielli Profile Picture

Tom_Gioielli 116 Super User 2025 Season 2

Last 30 days Overall leaderboard

Product updates

Dynamics 365 release plans