/ Insights / CRM Online Server-Side Sync AutoDiscover Fix Insights CRM Online Server-Side Sync AutoDiscover Fix April 17, 2015 Concurrency, Inc.There’s an odd bug that crops up in the CRM Online Email Server Profiles for some organizations which automatically sets the AutoDiscover option to Yes, disables the option on the form, and hides the fields immediately after the Email Server Profile form loads. After a few calls with Microsoft, I was shown the nifty little trick to get around this, and I thought I’d share.ScenarioLet’s assume you’ve got CRM Online, and also use Exchange Online. You’d like to get rid of that pesky Email Router, which is just one more server to monitor, so you decide to switch to Server-Side Synchronization for CRM Online. Microsoft’s documentation makes it seem pretty easy, and all you need to do is enable the Exchange Online Email Server Profile, and enable the Mailboxes (as an Office 365 Global Admin), however every time you Test & Enable a mailbox, you get an error, and the test fail.SolutionIn many instances, the AutoDiscover will not resolve correctly on the Email Server Profile, and you’ll need to manually enter the Exchange Online EWS address. This opens a whole new set of issues, in that sometimes the option to set AutoDiscover to No is disabled, and dissapears from the form. The steps below describe how to force those fields to be enabled, and allow you to enter the EWS address. Note: The area highlited in the red box is disabled by default, and right after the form loads, it becomes hidden as well.Step A: Using Chrome, get the Email Server Profile URL, and open it in a new window with Developer ToolsIn CRM, navigate to Settings > Email Configuration > Email Server Profiles, and open your Active Exchange profile (called ‘Microsoft Exchange Online’ by defaultCopy the URL of this windowOpen a new Chrome window and navigate to the URLEnable the Chrome Developer Tools (steps vary depending on version of Chrome)Step B: In the Developer Tools, Ctrl+F to find the below attributes in the code and Edit the attributes.USEAUTODISCOVER_CFind the first instance of this attributeDouble click the two locations highlighted where it says ‘hidden’ and change them to ‘visible’Before: 4. After:RAD_USEAUTODISCOVER1Find the 2nd instance of this attribute, and the code should appear like this:Double click where it says ‘disabled’ and delete it, then click elsewhere in the code to affect the changeThe new code should look like this:RAD_USEAUTODISCOVER2Repeat the steps above, to remove ‘disabled’ for this attributeBefore3. After:INCOMINGSERVERLOCATIONFind the attribute, and locate the attributes highlighted belowBefore: 3. Delete the hidden and disabled attributes such that the code looks like the After picture shown below4. AfterOUTGOINGSERVERLOCATIONRepeat the same steps above for the Outgoing ServerBefore4. AfterStep C: Set Server LocationsChange the ‘Auto Discover Server Location’ to NoNow that the Incoming and Outgoing server fields are enabled, enter this value into both of them: https://outlook.office365.com/EWS/Exchange.asmxStep D: Save & Close. Your Email Server Profile should not be able to communicate with Exchange Online, so you can Test & Enable mailboxes to confirm.Hopefully this helps solve your Server-Side Synchronization woes.