Connections > Microsoft Dynamics 365 for Sales connections > Troubleshooting a Microsoft Dynamics 365 for Sales connection
  

Troubleshooting a Microsoft Dynamics 365 for Sales connection

If the test connection takes a long time, ensure that the vocabularies.odata.org and login.microsoftonline.com domains have access in the network firewall of the agent server and then retest the connection.
For more information, you can see Domain access in firewall Knowledge base article.