Connect Campaign and Microsoft Dynamics 365 connect-to-msdyn
In this page, you will learn how to connect Campaign Classic to Microsoft Dynamics CRM 365.
Possible deployment is via Web API (recommended). Refer to the section below to learn steps to set up the connection with Microsoft Dynamics.
Data synchronization is carried out via a dedicated workflow activity. Learn more.
Implementation steps microsoft-dynamics-implementation-steps
To connect Microsoft Dynamics 365 to work with Adobe Campaign via Web API, you need to apply the following steps:
In Microsoft Dynamics CRM:
- Get Microsoft Dynamics Client ID
- Generate Microsoft Dynamics Certificate key identifier and Key ID
- Configure permissions
- Create an App User
- Encode the private key
In Campaign Classic:
- Create a new external account
- Configure the external account with Microsoft Dynamics settings
- Use the configuration wizard to map tables and synchronize enumerations
- Create the synchronization workflow
- Install plug-ins which can change the CRM’s behavior, and lead to compatibility issues with Adobe Campaign
- Select multiple enumerations
Configure Microsoft Dynamics CRM config-crm-microsoft
To generate the access token and keys to setup the account, you need to login to Microsoft Azure Directory using a Global administrator credentials. Then follow the steps outlined below.
Get Microsoft Dynamics Client ID get-client-id-microsoft
To get the Client ID, you need to register an App in Azure Active Directory. Client ID is the same as Application ID.
- Navigate to Azure Active Directory > App Registrations, and click New Application Registration.
- Give a unique name which can help identify an instance, such as adobecampaign
<instance identifier>
. - Choose Application type as Web app / API.
- Use
http://localhost
for Sign-on URL.
Once you save, you get an Application ID which is the Client Identifier for Campaign.
Learn more in this page.
Generate Microsoft Dynamics Certificate key identifier and Key ID config-certificate-key-id
To get the Certificate key identifier (customKeyIdentifier) and the Key ID (keyId), follow the steps below:
-
Navigate to Azure Active Directory > App Registrations and select the Application which was created earlier.
-
Click on Certificates and Secret.
-
Click on Upload certificate and then browse and upload your public certificate generated.
-
To generate the certificate you can use openssl.
For example:
code language-none - openssl req -x509 -sha256 -nodes -days 365 -newkey rsa:2048 -keyout '<'private key name'>' -out '<'public certificate name'>
note note NOTE You can change the number of days, here -days 365
, in the code sample for a longer certificate validity period. -
You will then need to encode it in base64. To do so, you can use the help of a Base64 encoder or use the command line
base64 -w0 private.key
for Linux. -
Click on the Manifest link to get the Certificate key identifier (customKeyIdentifier) and the Key ID (keyId).
The Certificate key identifier (customKeyIdentifier) and the Key ID (keyId) will be needed later on to configure your Microsoft Dynamics CRM external account using the Certificate CRM O-Auth type.
Configure permissions config-permissions-microsoft
Step 1: Configure the Required Permissions for the app that was created.
-
Navigate to Azure Active Directory > App Registrations and select the Application which was created earlier.
-
Click Settings on the top left.
-
On Required Permissions, click Add and Select an API > Dynamics CRM Online.
-
Click Select, enable Access Dynamics 365 as organization users checkbox and click Select.
-
Then, from your app, select the Manifest under the Manage menu.
-
From the Manifest editor, set the
allowPublicClient
property fromnull
totrue
and click Save.
Step 2: Grant admin consent
-
Navigate to Azure Active Directory > Enterprise applications.
-
Select the application to which you want to grant tenant-wide admin consent.
-
From the left pane menu, select Permissions under Security.
-
Click Grant admin consent.
For more information on this, refer to Azure documentation.
Create an App User create-app-user-microsoft
The App user is the user that the application registered above will use. Any changes made to Microsoft Dynamics using the App registered above will be done via this user.
Step 1: Create a non-interactive user on azure active directory
- Click Azure Active Directory > Users and click New User.
- Give a proper name that you want use and the username should be an email format.
- Choose Dynamics 365 Administrator in the Directory Role.
Step 2: Assign a proper license to the created user
- From Microsoft Azure, click on Admin app.
- Go to Users > Active Users and click on the newly created user.
- Click on Edit product licenses and select the Dynamics 365 Customer Engagement Plan.
- Click Close.
Step 3: Create an application user on Dynamics CRM
-
From Microsoft Azure, navigate to Settings > Security > Users.
-
Click on drop down, select Application users and click New.
-
Use the same username as the user created on active directory above
note note NOTE Using the same name throws duplicate key error, so until we get a confirmation as whether this step is needed, use a different username and proceed. -
Assign the Application ID for the application you created earlier.
-
Click on Manage Roles and choose the System administrator role to the user.
Configure Campaign configure-acc-for-microsoft
To connect Microsoft Dynamics 365 and Campaign, you need to create and configure a dedicated External Account in Campaign.
-
Navigate to Administration > Platform > External accounts.
-
Select the Microsoft Dynamics CRM external account. Check the Enabled option.
-
Fill in the information required to connect Microsoft Dynamics 365 and Campaign.
note note NOTE Microsoft Dynamics CRM External account configuration with each CRM O-Auth type is detailed in this section. -
Click the Microsoft CRM configuration wizard… link. Adobe Campaign automatically detects the tables from the Microsoft Dynamics data template.
-
Select the tables to be recovered.
-
Click Next to start creating the corresponding schema.
note note NOTE To approve the configuration, you must disconnect/reconnect to the Adobe Campaign console. You can check that the matching data schema becomes available in Adobe Campaign.
-
Click the Synchronizing enumerations… link to start synchronizing enumerations between Adobe Campaign and Microsoft Dynamics.
Campaign and Microsoft Dynamics are now connected. You can set up data synchronization between the two systems. Learn more in the Data synchronization section.
login.microsoftonline.com
in the Server configuration. For more information on how to configure URL permissions, refer to this page.Supported field data types ms-dyn-supported-types
For Microsoft Dynamics 365 supported/unsupported attribute types are listed below: