Connecting MuleSoft to Dynamics 365

When configuring MuleSoft to connect to Microsoft Dynamics 365, you need to firstly add and configure App Registration in Microsoft Azure.

Through the Azure Portal:

  1. Search for “App registrations
  2. Click Endpoints
  3. Make note of OAuth 2.0 Token Endpoint value (e.g. https://login.microsoftonline.com/40e93e46-605d-4d18-bd8e-85159bfa57f5/oauth2/token)
  4. Create a new application registration with the following details:
  5. Make note of the app’s Application ID (e.g. 08537bd4-2a21-4e60-a7eb-2472fc27b670)
  6. Under API Access > Required Permissions,
    • add Dynamics CRM Online, and select/tick Access CRM Online as organization users;
    • click Grant Permissions and select Yes to confirm.
  7. Under API Access > Keys, create a new key, specifying any description, and expiry.
  8. Make note of the generated key value (e.g. KwYxhyF7yFuhuEMT1ujiQk9h7QFarQIvDz/lMVpHxQE=)

In MuleSoft (online via Design Center, or onprem via Anypoint Studio), in the Dynamics 365 Configuration window:

  1. Complete the following details:
    • Connection Type: OAuth Username Password
    • Username: svc_dynamics@yourorg.onmicrosoft.com (Or Service Account)
    • Password: <<Service Account Password>>
    • Resource: https://yourorg.crm.dynamics.com/
    • Client ID: <<The GUID of the Application ID created in Azure / Step #5>>
    • Client Secret: <<The generated key value / Step #8>>
    • Token Request Endpoint: https://login.microsoftonline.com/<<Azure Tenant GUID>>/oauth2/token (Step #3)
  2. Click Test to test the connection

Advertisements

Leave a Reply

Fill in your details below or click an icon to log in:

WordPress.com Logo

You are commenting using your WordPress.com account. Log Out /  Change )

Google+ photo

You are commenting using your Google+ account. Log Out /  Change )

Twitter picture

You are commenting using your Twitter account. Log Out /  Change )

Facebook photo

You are commenting using your Facebook account. Log Out /  Change )

Connecting to %s