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.
To connect Microsoft Dynamics 365 to work with Adobe Campaign via Web API, you need to apply the following steps:
In Microsoft Dynamics CRM:
In Campaign Classic:
When connecting Adobe Campaign with Microsoft Dynamics, you cannot:
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.
To get the Client ID, you need to register an App in Azure Active Directory. Client ID is the same as Application ID.
<instance identifier>
.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.
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:
- openssl req -x509 -sha256 -nodes -days 365 -newkey rsa:2048 -keyout '<'private key name'>' -out '<'public certificate name'>
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.
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 from null
to true
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.
This step is optional with Password credentials authentication.
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
Step 2: Assign a proper license to the created user
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
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.
Post the decommissioning of RDS from Microsoft, the On-premise and Office 365 types of CRM deployments are no longer compatible with Campaign. Adobe Campaign now only supports Web API deployment for the CRM version Dynamic CRM 365. Learn more.
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.
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.
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.
You need to make sure to add to the allowlist two URLs: the server URL and login.microsoftonline.com
in the Server configuration. For more information on how to configure URL permissions, refer to this page.
For Microsoft Dynamics 365 supported/unsupported attribute types are listed below:
Attribute type | Supported |
---|---|
Basic types : boolean, datetime, decimal, float, double, integer, bigint , string | Yes |
Money (as double) | Yes |
memo, entityname , primarykey, uniqueidentifier (as strings) | Yes |
Status, picklist (we store the possible values in enumerations), state (string) | Yes |
owner (as string) | Yes |
Lookup (only single entity reference lookups) | Yes |
customer | No |
Regarding | No |
PartyList | No |
ManagedProperty | No |
MultiSelect Option Set | No |