2

We have Sitecore 10.0 Update 1 and on top we have installed Data Exchange Framework 5.0 and Sitecore Connect for Microsoft Dynamics 365 for Sales 5.0.0.

I have followed the installation guide on setting up both modules.

When I am trying to check connection between Sitecore and Dynamics by running Troubleshooting I get this error message:

Exception during connection. Read more in log file. Metadata contains a reference that cannot be resolved: 'https://obfuscated.api.crm.dynamics.com/XRMServices/2011/Organization.svc?wsdl&sdkversion=9'.

enter image description here

I have this setup in ConnectionStrings.config:

<add name="formsCrm" connectionString="url=https://OOO.api.crm.dynamics.com/XRMServices/2011/Organization.svc;user [email protected];password=OOO;organization=OOO;authentication type=2" />

I have already tried to change authentication type to 0 and 1 but no difference.

I have organization ID from Developer Resources and Unique Name:

enter image description here

What I have missed? Any resolution for this error?

2 Answers 2

2

I didn't use DEF 5.0.0 but on previous versions I used:

<add name="dynamicsCRM" connectionString="Url=https://sitecoretest9.crm4.dynamics.com; User id=[my email]; Password=[my password];" />
1
  • 1
    Note that ClientSecret is the recommended authentication method at this time:AuthType=ClientSecret;ClientId=SOME_GUID;ClientSecret=SOME_SECRET;Url=https://ORG_NAME.crm.dynamics.com/ Jun 22, 2022 at 14:49
1

As discussed on slack; the connectionstring URL has to contain crm4.dynamics.com, instead of crm.dynamics.com

1
  • Why does it need to contain 4? Isn't that just a Dynamics 365 CRM URL region? Jun 1, 2022 at 20:07

Your Answer

By clicking “Post Your Answer”, you agree to our terms of service and acknowledge you have read our privacy policy.

Not the answer you're looking for? Browse other questions tagged or ask your own question.