{"id":28423,"date":"2021-06-30T10:48:36","date_gmt":"2021-06-30T10:48:36","guid":{"rendered":"https:\/\/www.inogic.com\/blog\/?p=28423"},"modified":"2021-09-01T09:29:58","modified_gmt":"2021-09-01T09:29:58","slug":"load-data-in-dynamics-365-crm-using-azure-copy-data-activity-tool","status":"publish","type":"post","link":"https:\/\/www.inogic.com\/blog\/2021\/06\/load-data-in-dynamics-365-crm-using-azure-copy-data-activity-tool\/","title":{"rendered":"Load Data in Dynamics 365 CRM using Azure Copy Data Activity tool"},"content":{"rendered":"<h2 style=\"text-align: justify;\"><strong>Introduction<\/strong><\/h2>\n<p style=\"text-align: justify;\">We recently had a business requirement to load data in Dynamics 365 CRM. We had a case where the user will create Account records in a CRM and at the end of the day, it should load records in the other Dynamics 365 CRM. To achieve this we have used the Azure Copy Data Activity tool, also we have configured scheduling on the \u201cCopy Data\u201d tool so it will <strong>Upsert<\/strong> records in the target system once a day.<\/p>\n<p style=\"text-align: justify;\">In this blog, we have explained how we have configured the \u2018Azure Copy Data Activity\u2019 tool to Load records. So, let\u2019s have a look at the steps we followed to achieve the same.<\/p>\n<p style=\"text-align: justify;\"><strong>Step 1<\/strong>: Connect to the Azure <a href=\"https:\/\/portal.azure.com\" target=\"_blank\" rel=\"noopener noreferrer\">https:\/\/portal.azure.com<\/a> and navigate to the Data factory. If you don\u2019t have a Data factory then create it first to use the \u2018Copy Data Activity tool\u2019. \u00a0Please refer to the below link to know how to create a Data factory:<\/p>\n<p style=\"text-align: justify;\"><a href=\"https:\/\/docs.microsoft.com\/en-us\/azure\/data-factory\/quickstart-create-data-factory-portal#create-a-data-factory\" target=\"_blank\" rel=\"noopener noreferrer\">https:\/\/docs.microsoft.com\/en-us\/azure\/data-factory\/quickstart-create-data-factory-portal#create-a-data-factory<\/a><\/p>\n<p style=\"text-align: justify;\"><strong>Step 2:\u00a0 <\/strong>We already have a Data factory i.e. \u201c<strong>DataLoadActivity<\/strong>\u201d, so we are using that but to add the Copy Data Activity tool, you need to add a pipeline.<\/p>\n<p style=\"text-align: justify;\">DataloadActivity (Data factory) -&gt; Author &amp; Monitor -&gt; Author -&gt; Create new\/Existing Pipeline -&gt; Drag and Drop <strong>Copy Data.<\/strong><\/p>\n<p style=\"text-align: justify;\">Please refer to the below screenshots:<\/p>\n<p style=\"text-align: justify;\"><strong>Navigate to Author &amp; Monitor<\/strong><\/p>\n<p style=\"text-align: justify;\"><a href=\"https:\/\/www.inogic.com\/blog\/wp-content\/uploads\/2021\/06\/Load-data-in-D365-CRM-10.png\" target=\"_blank\" rel=\"noopener noreferrer\"><img decoding=\"async\" class=\"aligncenter wp-image-28433 size-full\" src=\"https:\/\/www.inogic.com\/blog\/wp-content\/uploads\/2021\/06\/Load-data-in-D365-CRM-10.png\" alt=\"Load data in D365 CRM\" width=\"1307\" height=\"425\" srcset=\"https:\/\/www.inogic.com\/blog\/wp-content\/uploads\/2021\/06\/Load-data-in-D365-CRM-10.png 1307w, https:\/\/www.inogic.com\/blog\/wp-content\/uploads\/2021\/06\/Load-data-in-D365-CRM-10-300x98.png 300w, https:\/\/www.inogic.com\/blog\/wp-content\/uploads\/2021\/06\/Load-data-in-D365-CRM-10-768x250.png 768w, https:\/\/www.inogic.com\/blog\/wp-content\/uploads\/2021\/06\/Load-data-in-D365-CRM-10-1024x333.png 1024w, https:\/\/www.inogic.com\/blog\/wp-content\/uploads\/2021\/06\/Load-data-in-D365-CRM-10-660x215.png 660w\" sizes=\"(max-width: 1307px) 100vw, 1307px\" \/><\/a><\/p>\n<p style=\"text-align: justify;\"><strong>Navigate to Author<\/strong><\/p>\n<p style=\"text-align: justify;\"><a href=\"https:\/\/www.inogic.com\/blog\/wp-content\/uploads\/2021\/06\/Load-data-in-D365-CRM-11.png\" target=\"_blank\" rel=\"noopener noreferrer\"><img decoding=\"async\" class=\"aligncenter wp-image-28434 size-full\" src=\"https:\/\/www.inogic.com\/blog\/wp-content\/uploads\/2021\/06\/Load-data-in-D365-CRM-11.png\" alt=\"Load data in D365 CRM\" width=\"875\" height=\"422\" srcset=\"https:\/\/www.inogic.com\/blog\/wp-content\/uploads\/2021\/06\/Load-data-in-D365-CRM-11.png 875w, https:\/\/www.inogic.com\/blog\/wp-content\/uploads\/2021\/06\/Load-data-in-D365-CRM-11-300x145.png 300w, https:\/\/www.inogic.com\/blog\/wp-content\/uploads\/2021\/06\/Load-data-in-D365-CRM-11-768x370.png 768w, https:\/\/www.inogic.com\/blog\/wp-content\/uploads\/2021\/06\/Load-data-in-D365-CRM-11-660x318.png 660w\" sizes=\"(max-width: 875px) 100vw, 875px\" \/><\/a><\/p>\n<p style=\"text-align: justify;\"><strong>Add Pipeline<\/strong><\/p>\n<p style=\"text-align: justify;\"><a href=\"https:\/\/www.inogic.com\/blog\/wp-content\/uploads\/2021\/06\/Load-data-in-D365-CRM-12.png\" target=\"_blank\" rel=\"noopener noreferrer\"><img decoding=\"async\" class=\"aligncenter wp-image-28435 size-full\" src=\"https:\/\/www.inogic.com\/blog\/wp-content\/uploads\/2021\/06\/Load-data-in-D365-CRM-12.png\" alt=\"Load data in D365 CRM\" width=\"1058\" height=\"459\" srcset=\"https:\/\/www.inogic.com\/blog\/wp-content\/uploads\/2021\/06\/Load-data-in-D365-CRM-12.png 1058w, https:\/\/www.inogic.com\/blog\/wp-content\/uploads\/2021\/06\/Load-data-in-D365-CRM-12-300x130.png 300w, https:\/\/www.inogic.com\/blog\/wp-content\/uploads\/2021\/06\/Load-data-in-D365-CRM-12-768x333.png 768w, https:\/\/www.inogic.com\/blog\/wp-content\/uploads\/2021\/06\/Load-data-in-D365-CRM-12-1024x444.png 1024w, https:\/\/www.inogic.com\/blog\/wp-content\/uploads\/2021\/06\/Load-data-in-D365-CRM-12-660x286.png 660w\" sizes=\"(max-width: 1058px) 100vw, 1058px\" \/><\/a><\/p>\n<p style=\"text-align: justify;\"><strong>Drag and Drop \u2018Copy Data\u2019 tool.<\/strong><a href=\"https:\/\/www.inogic.com\/blog\/wp-content\/uploads\/2021\/06\/Load-data-in-D365-CRM-13.png\" target=\"_blank\" rel=\"noopener noreferrer\"><img decoding=\"async\" class=\"aligncenter wp-image-28436 size-full\" src=\"https:\/\/www.inogic.com\/blog\/wp-content\/uploads\/2021\/06\/Load-data-in-D365-CRM-13.png\" alt=\"Load data in D365 CRM\" width=\"1322\" height=\"443\" srcset=\"https:\/\/www.inogic.com\/blog\/wp-content\/uploads\/2021\/06\/Load-data-in-D365-CRM-13.png 1322w, https:\/\/www.inogic.com\/blog\/wp-content\/uploads\/2021\/06\/Load-data-in-D365-CRM-13-300x101.png 300w, https:\/\/www.inogic.com\/blog\/wp-content\/uploads\/2021\/06\/Load-data-in-D365-CRM-13-768x257.png 768w, https:\/\/www.inogic.com\/blog\/wp-content\/uploads\/2021\/06\/Load-data-in-D365-CRM-13-1024x343.png 1024w, https:\/\/www.inogic.com\/blog\/wp-content\/uploads\/2021\/06\/Load-data-in-D365-CRM-13-660x221.png 660w\" sizes=\"(max-width: 1322px) 100vw, 1322px\" \/><\/a><\/p>\n<p style=\"text-align: justify;\"><a href=\"https:\/\/www.inogic.com\/blog\/wp-content\/uploads\/2021\/06\/Load-data-in-D365-CRM-14.png\" target=\"_blank\" rel=\"noopener noreferrer\"><img decoding=\"async\" class=\"aligncenter wp-image-28437 size-full\" src=\"https:\/\/www.inogic.com\/blog\/wp-content\/uploads\/2021\/06\/Load-data-in-D365-CRM-14.png\" alt=\"Load data in D365 CRM\" width=\"860\" height=\"466\" srcset=\"https:\/\/www.inogic.com\/blog\/wp-content\/uploads\/2021\/06\/Load-data-in-D365-CRM-14.png 860w, https:\/\/www.inogic.com\/blog\/wp-content\/uploads\/2021\/06\/Load-data-in-D365-CRM-14-300x163.png 300w, https:\/\/www.inogic.com\/blog\/wp-content\/uploads\/2021\/06\/Load-data-in-D365-CRM-14-768x416.png 768w, https:\/\/www.inogic.com\/blog\/wp-content\/uploads\/2021\/06\/Load-data-in-D365-CRM-14-660x358.png 660w\" sizes=\"(max-width: 860px) 100vw, 860px\" \/><\/a><\/p>\n<p style=\"text-align: justify;\">We can change its name from the \u2018General tab\u2019, we have renamed it as \u2018Load Accounts\u2019.<\/p>\n<p style=\"text-align: justify;\"><a href=\"https:\/\/www.inogic.com\/blog\/wp-content\/uploads\/2021\/06\/Load-data-in-D365-CRM-15.png\" target=\"_blank\" rel=\"noopener noreferrer\"><img decoding=\"async\" class=\"aligncenter wp-image-28438 size-full\" src=\"https:\/\/www.inogic.com\/blog\/wp-content\/uploads\/2021\/06\/Load-data-in-D365-CRM-15.png\" alt=\"Load data in D365 CRM\" width=\"901\" height=\"713\" srcset=\"https:\/\/www.inogic.com\/blog\/wp-content\/uploads\/2021\/06\/Load-data-in-D365-CRM-15.png 901w, https:\/\/www.inogic.com\/blog\/wp-content\/uploads\/2021\/06\/Load-data-in-D365-CRM-15-300x237.png 300w, https:\/\/www.inogic.com\/blog\/wp-content\/uploads\/2021\/06\/Load-data-in-D365-CRM-15-768x608.png 768w, https:\/\/www.inogic.com\/blog\/wp-content\/uploads\/2021\/06\/Load-data-in-D365-CRM-15-660x522.png 660w\" sizes=\"(max-width: 901px) 100vw, 901px\" \/><\/a><\/p>\n<p style=\"text-align: justify;\"><strong>Step 3: <\/strong>In the next step, we need to add a new dataset and configure a connection with Dynamics 365 CRM. To configure the dataset, we need to click on the <strong>Dataset<\/strong> menu and add <strong>New Dataset<\/strong> as shown below:<\/p>\n<p style=\"text-align: justify;\"><a href=\"https:\/\/www.inogic.com\/blog\/wp-content\/uploads\/2021\/06\/Load-data-in-D365-CRM-16.png\" target=\"_blank\" rel=\"noopener noreferrer\"><img decoding=\"async\" class=\"aligncenter wp-image-28439 size-full\" src=\"https:\/\/www.inogic.com\/blog\/wp-content\/uploads\/2021\/06\/Load-data-in-D365-CRM-16.png\" alt=\"\" width=\"1004\" height=\"474\" srcset=\"https:\/\/www.inogic.com\/blog\/wp-content\/uploads\/2021\/06\/Load-data-in-D365-CRM-16.png 1004w, https:\/\/www.inogic.com\/blog\/wp-content\/uploads\/2021\/06\/Load-data-in-D365-CRM-16-300x142.png 300w, https:\/\/www.inogic.com\/blog\/wp-content\/uploads\/2021\/06\/Load-data-in-D365-CRM-16-768x363.png 768w, https:\/\/www.inogic.com\/blog\/wp-content\/uploads\/2021\/06\/Load-data-in-D365-CRM-16-660x312.png 660w\" sizes=\"(max-width: 1004px) 100vw, 1004px\" \/><\/a><\/p>\n<p style=\"text-align: justify;\">It will open the Data Stores window. Here we need to select Dataverse (Common data service for app) and click on continue.<\/p>\n<p style=\"text-align: justify;\"><a href=\"https:\/\/www.inogic.com\/blog\/wp-content\/uploads\/2021\/06\/Load-data-in-D365-CRM-17.png\" target=\"_blank\" rel=\"noopener noreferrer\"><img decoding=\"async\" class=\"aligncenter wp-image-28440 size-full\" src=\"https:\/\/www.inogic.com\/blog\/wp-content\/uploads\/2021\/06\/Load-data-in-D365-CRM-17.png\" alt=\"Load data in D365 CRM \" width=\"923\" height=\"839\" srcset=\"https:\/\/www.inogic.com\/blog\/wp-content\/uploads\/2021\/06\/Load-data-in-D365-CRM-17.png 923w, https:\/\/www.inogic.com\/blog\/wp-content\/uploads\/2021\/06\/Load-data-in-D365-CRM-17-300x273.png 300w, https:\/\/www.inogic.com\/blog\/wp-content\/uploads\/2021\/06\/Load-data-in-D365-CRM-17-768x698.png 768w, https:\/\/www.inogic.com\/blog\/wp-content\/uploads\/2021\/06\/Load-data-in-D365-CRM-17-660x600.png 660w\" sizes=\"(max-width: 923px) 100vw, 923px\" \/><\/a><\/p>\n<p style=\"text-align: justify;\">Once the dataset is added, we need to add link services. To add link services, click on the +New button and it will open another window where we need to set CRM connection details.<\/p>\n<p style=\"text-align: justify;\"><a href=\"https:\/\/www.inogic.com\/blog\/wp-content\/uploads\/2021\/06\/Load-data-in-D365-CRM-18.png\" target=\"_blank\" rel=\"noopener noreferrer\"><img decoding=\"async\" class=\"aligncenter wp-image-28441 size-full\" src=\"https:\/\/www.inogic.com\/blog\/wp-content\/uploads\/2021\/06\/Load-data-in-D365-CRM-18.png\" alt=\"Load data in D365 CRM \" width=\"906\" height=\"369\" srcset=\"https:\/\/www.inogic.com\/blog\/wp-content\/uploads\/2021\/06\/Load-data-in-D365-CRM-18.png 906w, https:\/\/www.inogic.com\/blog\/wp-content\/uploads\/2021\/06\/Load-data-in-D365-CRM-18-300x122.png 300w, https:\/\/www.inogic.com\/blog\/wp-content\/uploads\/2021\/06\/Load-data-in-D365-CRM-18-768x313.png 768w, https:\/\/www.inogic.com\/blog\/wp-content\/uploads\/2021\/06\/Load-data-in-D365-CRM-18-660x269.png 660w\" sizes=\"(max-width: 906px) 100vw, 906px\" \/><\/a><\/p>\n<p style=\"text-align: justify;\">Here, we need to pass details i.e., Name, Service Url, Authentication type(AAD Service Principal), Service Principal Id(Azure Active directory App Id) and service principal key(secret key) details. And after the \u2018Test connection\u2019, click on <strong>Create.<\/strong><\/p>\n<p style=\"text-align: justify;\"><a href=\"https:\/\/www.inogic.com\/blog\/wp-content\/uploads\/2021\/06\/Load-data-in-D365-CRM-19.png\" target=\"_blank\" rel=\"noopener noreferrer\"><img decoding=\"async\" class=\"aligncenter wp-image-28442 size-full\" src=\"https:\/\/www.inogic.com\/blog\/wp-content\/uploads\/2021\/06\/Load-data-in-D365-CRM-19.png\" alt=\"Load data in D365 CRM \" width=\"723\" height=\"857\" srcset=\"https:\/\/www.inogic.com\/blog\/wp-content\/uploads\/2021\/06\/Load-data-in-D365-CRM-19.png 723w, https:\/\/www.inogic.com\/blog\/wp-content\/uploads\/2021\/06\/Load-data-in-D365-CRM-19-253x300.png 253w, https:\/\/www.inogic.com\/blog\/wp-content\/uploads\/2021\/06\/Load-data-in-D365-CRM-19-660x782.png 660w\" sizes=\"(max-width: 723px) 100vw, 723px\" \/><\/a><\/p>\n<ul style=\"text-align: justify;\">\n<li><strong>Name<\/strong>: Connection name<\/li>\n<li><strong>Connect via integration runtime<\/strong>: AutoResolveintegrationruntime<\/li>\n<li><strong>Deployment Type:<\/strong> It has two options i.e. Online and OnpremisewithIfd. As we are connecting to Dynamics 365 CRM online, so need to select online.<\/li>\n<li><strong>Service uri: <\/strong>Dynamics 365 CRM url<\/li>\n<li><strong>Authentication Type: <\/strong>It has 2 options i.e. AAD service Principal and office365. Need to select \u2018AAD service Principal\u2019 option. FYI, office365 is deprecated now.<\/li>\n<li><strong>Service Principal credential type: <\/strong>Select \u2018service principal key\u2019 and then it will ask to enter Azure Active directory App Id and secret key.<\/li>\n<li><strong>Service Principal ID: <\/strong>Need to pass Azure Active Directory Application(client) Id.<\/li>\n<li><strong>Service Principal Key: <\/strong>Need to pass Azure Active Directory Secret key.<\/li>\n<\/ul>\n<p style=\"text-align: justify;\">To establish a connection, you must have Azure Active Directory and use the App Id and secret key from the Azure Active Directory app. You can refer to the below article to know about how to configure\/create Azure Active Directory app:<\/p>\n<p style=\"text-align: justify;\"><a href=\"https:\/\/www.inogic.com\/blog\/create-azure-active-directory-app\" target=\"_blank\" rel=\"noopener noreferrer\">https:\/\/www.inogic.com\/blog\/create-azure-active-directory-app<\/a><\/p>\n<p style=\"text-align: justify;\">Once Azure Active Directory app is configured, you need to create an <strong>Application user<\/strong> in CRM. To configure the Application user, we need to pass Azure Active Directory <strong>Application ID (App Id) <\/strong>as shown below:<\/p>\n<p style=\"text-align: justify;\"><a href=\"https:\/\/www.inogic.com\/blog\/wp-content\/uploads\/2021\/06\/Load-data-in-D365-CRM-20.png\" target=\"_blank\" rel=\"noopener noreferrer\"><img decoding=\"async\" class=\"aligncenter wp-image-28443 size-full\" src=\"https:\/\/www.inogic.com\/blog\/wp-content\/uploads\/2021\/06\/Load-data-in-D365-CRM-20.png\" alt=\"Load data in D365 CRM \" width=\"585\" height=\"565\" srcset=\"https:\/\/www.inogic.com\/blog\/wp-content\/uploads\/2021\/06\/Load-data-in-D365-CRM-20.png 585w, https:\/\/www.inogic.com\/blog\/wp-content\/uploads\/2021\/06\/Load-data-in-D365-CRM-20-300x290.png 300w\" sizes=\"(max-width: 585px) 100vw, 585px\" \/><\/a><\/p>\n<p style=\"text-align: justify;\">After this, we need to select the table name under connection. As we want to load data for the Account table so here we select the Account table. Using the same way, we have set up a dataset\/connection for both Source and Target CRMs.<\/p>\n<p style=\"text-align: justify;\"><a href=\"https:\/\/www.inogic.com\/blog\/wp-content\/uploads\/2021\/06\/Load-data-in-D365-CRM-1.png\" target=\"_blank\" rel=\"noopener noreferrer\"><img decoding=\"async\" class=\"aligncenter wp-image-28424 size-full\" src=\"https:\/\/www.inogic.com\/blog\/wp-content\/uploads\/2021\/06\/Load-data-in-D365-CRM-1.png\" alt=\"Load data in D365 CRM \" width=\"1180\" height=\"410\" srcset=\"https:\/\/www.inogic.com\/blog\/wp-content\/uploads\/2021\/06\/Load-data-in-D365-CRM-1.png 1180w, https:\/\/www.inogic.com\/blog\/wp-content\/uploads\/2021\/06\/Load-data-in-D365-CRM-1-300x104.png 300w, https:\/\/www.inogic.com\/blog\/wp-content\/uploads\/2021\/06\/Load-data-in-D365-CRM-1-768x267.png 768w, https:\/\/www.inogic.com\/blog\/wp-content\/uploads\/2021\/06\/Load-data-in-D365-CRM-1-1024x356.png 1024w, https:\/\/www.inogic.com\/blog\/wp-content\/uploads\/2021\/06\/Load-data-in-D365-CRM-1-660x229.png 660w\" sizes=\"(max-width: 1180px) 100vw, 1180px\" \/><\/a><\/p>\n<p style=\"text-align: justify;\"><strong>Step 4: <\/strong>Now, we can set up the \u201cCopy Data\u201d tool. In the first step, we need to set up a Source detail, as shown below. Here, we have selected a table but as per the requirement, we can also select Query and pass the fetchxml query.<\/p>\n<p style=\"text-align: justify;\"><a href=\"https:\/\/www.inogic.com\/blog\/wp-content\/uploads\/2021\/06\/Load-data-in-D365-CRM-2.png\" target=\"_blank\" rel=\"noopener noreferrer\"><img decoding=\"async\" class=\"aligncenter wp-image-28425 size-full\" src=\"https:\/\/www.inogic.com\/blog\/wp-content\/uploads\/2021\/06\/Load-data-in-D365-CRM-2.png\" alt=\"Load data in D365 CRM \" width=\"892\" height=\"663\" srcset=\"https:\/\/www.inogic.com\/blog\/wp-content\/uploads\/2021\/06\/Load-data-in-D365-CRM-2.png 892w, https:\/\/www.inogic.com\/blog\/wp-content\/uploads\/2021\/06\/Load-data-in-D365-CRM-2-300x223.png 300w, https:\/\/www.inogic.com\/blog\/wp-content\/uploads\/2021\/06\/Load-data-in-D365-CRM-2-768x571.png 768w, https:\/\/www.inogic.com\/blog\/wp-content\/uploads\/2021\/06\/Load-data-in-D365-CRM-2-660x491.png 660w\" sizes=\"(max-width: 892px) 100vw, 892px\" \/><\/a><\/p>\n<p style=\"text-align: justify;\"><strong>Step 5: <\/strong>Next, we need to set up <strong>Sink<\/strong> details. Here we have selected Target CRM and selected behavior as Upsert. Also, it has other properties i.e. to ignore null values, perform upsert based on Alternate key, etc.<\/p>\n<p style=\"text-align: justify;\"><a href=\"https:\/\/www.inogic.com\/blog\/wp-content\/uploads\/2021\/06\/Load-data-in-D365-CRM-3.png\" target=\"_blank\" rel=\"noopener noreferrer\"><img decoding=\"async\" class=\"aligncenter wp-image-28426 size-full\" src=\"https:\/\/www.inogic.com\/blog\/wp-content\/uploads\/2021\/06\/Load-data-in-D365-CRM-3.png\" alt=\"Load data in D365 CRM \" width=\"906\" height=\"680\" srcset=\"https:\/\/www.inogic.com\/blog\/wp-content\/uploads\/2021\/06\/Load-data-in-D365-CRM-3.png 906w, https:\/\/www.inogic.com\/blog\/wp-content\/uploads\/2021\/06\/Load-data-in-D365-CRM-3-300x225.png 300w, https:\/\/www.inogic.com\/blog\/wp-content\/uploads\/2021\/06\/Load-data-in-D365-CRM-3-768x576.png 768w, https:\/\/www.inogic.com\/blog\/wp-content\/uploads\/2021\/06\/Load-data-in-D365-CRM-3-660x495.png 660w\" sizes=\"(max-width: 906px) 100vw, 906px\" \/><\/a><\/p>\n<p style=\"text-align: justify;\"><strong><em>Note<\/em><\/strong><em>: If you don\u2019t want to upsert the record based on the Primary key field (i.e., accountid) then you can use the Alternate key property. You need to set an alternate key in your target CRM table field and then the alternate key will display here under the Alternate key name list.<\/em><\/p>\n<p style=\"text-align: justify;\">Please refer to the below article to know how we can configure alternate key in CRM:<\/p>\n<p style=\"text-align: justify;\"><a href=\"https:\/\/docs.microsoft.com\/en-us\/dynamics365\/customerengagement\/on-premises\/customize\/define-alternate-keys-reference-records?view=op-9-1#define-alternate-keys\" target=\"_blank\" rel=\"noopener noreferrer\">https:\/\/docs.microsoft.com\/en-us\/dynamics365\/customerengagement\/on-premises\/customize\/define-alternate-keys-reference-records?view=op-9-1#define-alternate-keys<\/a><\/p>\n<p style=\"text-align: justify;\"><strong>Step 6: <\/strong>Once Sink details are configured, we need to set field mapping as shown below:<\/p>\n<p style=\"text-align: justify;\"><a href=\"https:\/\/www.inogic.com\/blog\/wp-content\/uploads\/2021\/06\/Load-data-in-D365-CRM-4.png\" target=\"_blank\" rel=\"noopener noreferrer\"><img decoding=\"async\" class=\"aligncenter wp-image-28427 size-full\" src=\"https:\/\/www.inogic.com\/blog\/wp-content\/uploads\/2021\/06\/Load-data-in-D365-CRM-4.png\" alt=\"Load data in D365 CRM \" width=\"1187\" height=\"716\" srcset=\"https:\/\/www.inogic.com\/blog\/wp-content\/uploads\/2021\/06\/Load-data-in-D365-CRM-4.png 1187w, https:\/\/www.inogic.com\/blog\/wp-content\/uploads\/2021\/06\/Load-data-in-D365-CRM-4-300x181.png 300w, https:\/\/www.inogic.com\/blog\/wp-content\/uploads\/2021\/06\/Load-data-in-D365-CRM-4-768x463.png 768w, https:\/\/www.inogic.com\/blog\/wp-content\/uploads\/2021\/06\/Load-data-in-D365-CRM-4-1024x618.png 1024w, https:\/\/www.inogic.com\/blog\/wp-content\/uploads\/2021\/06\/Load-data-in-D365-CRM-4-660x398.png 660w\" sizes=\"(max-width: 1187px) 100vw, 1187px\" \/><\/a><\/p>\n<p style=\"text-align: justify;\"><strong><em>Note:<\/em><\/strong><em> If you don\u2019t see mapping fields, please click on Import Schemas.<\/em><\/p>\n<p style=\"text-align: justify;\"><strong>Step 7: <\/strong>We can also add a trigger and configure scheduling to trigger the \u2018Copy Data\u2019 tool.<\/p>\n<p style=\"text-align: justify;\"><a href=\"https:\/\/www.inogic.com\/blog\/wp-content\/uploads\/2021\/06\/Load-data-in-D365-CRM-5.png\" target=\"_blank\" rel=\"noopener noreferrer\"><img decoding=\"async\" class=\"aligncenter wp-image-28428 size-full\" src=\"https:\/\/www.inogic.com\/blog\/wp-content\/uploads\/2021\/06\/Load-data-in-D365-CRM-5.png\" alt=\"Load data in D365 CRM \" width=\"886\" height=\"322\" srcset=\"https:\/\/www.inogic.com\/blog\/wp-content\/uploads\/2021\/06\/Load-data-in-D365-CRM-5.png 886w, https:\/\/www.inogic.com\/blog\/wp-content\/uploads\/2021\/06\/Load-data-in-D365-CRM-5-300x109.png 300w, https:\/\/www.inogic.com\/blog\/wp-content\/uploads\/2021\/06\/Load-data-in-D365-CRM-5-768x279.png 768w, https:\/\/www.inogic.com\/blog\/wp-content\/uploads\/2021\/06\/Load-data-in-D365-CRM-5-660x240.png 660w\" sizes=\"(max-width: 886px) 100vw, 886px\" \/><\/a><\/p>\n<p style=\"text-align: justify;\">It has multiple options to set trigger i.e., minutes\/hourly\/day\/week. As per our requirement, we have set it to Day(s), as shown in the below screenshot<\/p>\n<p style=\"text-align: justify;\"><a href=\"https:\/\/www.inogic.com\/blog\/wp-content\/uploads\/2021\/06\/Load-data-in-D365-CRM-6.png\" target=\"_blank\" rel=\"noopener noreferrer\"><img decoding=\"async\" class=\"aligncenter wp-image-28429 size-full\" src=\"https:\/\/www.inogic.com\/blog\/wp-content\/uploads\/2021\/06\/Load-data-in-D365-CRM-6.png\" alt=\"Load data in D365 CRM \" width=\"738\" height=\"843\" srcset=\"https:\/\/www.inogic.com\/blog\/wp-content\/uploads\/2021\/06\/Load-data-in-D365-CRM-6.png 738w, https:\/\/www.inogic.com\/blog\/wp-content\/uploads\/2021\/06\/Load-data-in-D365-CRM-6-263x300.png 263w, https:\/\/www.inogic.com\/blog\/wp-content\/uploads\/2021\/06\/Load-data-in-D365-CRM-6-660x754.png 660w\" sizes=\"(max-width: 738px) 100vw, 738px\" \/><\/a><\/p>\n<p style=\"text-align: justify;\"><strong>Step 8: <\/strong>Publish all.<\/p>\n<p style=\"text-align: justify;\"><a href=\"https:\/\/www.inogic.com\/blog\/wp-content\/uploads\/2021\/06\/Load-data-in-D365-CRM-7.png\" target=\"_blank\" rel=\"noopener noreferrer\"><img decoding=\"async\" class=\"aligncenter wp-image-28430 size-full\" src=\"https:\/\/www.inogic.com\/blog\/wp-content\/uploads\/2021\/06\/Load-data-in-D365-CRM-7.png\" alt=\"Load data in D365 CRM \" width=\"799\" height=\"379\" srcset=\"https:\/\/www.inogic.com\/blog\/wp-content\/uploads\/2021\/06\/Load-data-in-D365-CRM-7.png 799w, https:\/\/www.inogic.com\/blog\/wp-content\/uploads\/2021\/06\/Load-data-in-D365-CRM-7-300x142.png 300w, https:\/\/www.inogic.com\/blog\/wp-content\/uploads\/2021\/06\/Load-data-in-D365-CRM-7-768x364.png 768w, https:\/\/www.inogic.com\/blog\/wp-content\/uploads\/2021\/06\/Load-data-in-D365-CRM-7-660x313.png 660w\" sizes=\"(max-width: 799px) 100vw, 799px\" \/><\/a><\/p>\n<p style=\"text-align: justify;\">We can also monitor the run history. To check the run history please navigate to Monitor -&gt; Pipeline run.<\/p>\n<p style=\"text-align: justify;\"><a href=\"https:\/\/www.inogic.com\/blog\/wp-content\/uploads\/2021\/06\/Load-data-in-D365-CRM-8.png\" target=\"_blank\" rel=\"noopener noreferrer\"><img decoding=\"async\" class=\"aligncenter wp-image-28431 size-full\" src=\"https:\/\/www.inogic.com\/blog\/wp-content\/uploads\/2021\/06\/Load-data-in-D365-CRM-8.png\" alt=\"Load data in D365 CRM \" width=\"1384\" height=\"389\" srcset=\"https:\/\/www.inogic.com\/blog\/wp-content\/uploads\/2021\/06\/Load-data-in-D365-CRM-8.png 1384w, https:\/\/www.inogic.com\/blog\/wp-content\/uploads\/2021\/06\/Load-data-in-D365-CRM-8-300x84.png 300w, https:\/\/www.inogic.com\/blog\/wp-content\/uploads\/2021\/06\/Load-data-in-D365-CRM-8-768x216.png 768w, https:\/\/www.inogic.com\/blog\/wp-content\/uploads\/2021\/06\/Load-data-in-D365-CRM-8-1024x288.png 1024w, https:\/\/www.inogic.com\/blog\/wp-content\/uploads\/2021\/06\/Load-data-in-D365-CRM-8-660x186.png 660w\" sizes=\"(max-width: 1384px) 100vw, 1384px\" \/><\/a><\/p>\n<p style=\"text-align: justify;\">Also, we can run the pipeline by clicking on Debug without setting any Trigger, please refer to the below screenshot:<\/p>\n<p style=\"text-align: justify;\"><a href=\"https:\/\/www.inogic.com\/blog\/wp-content\/uploads\/2021\/06\/Load-data-in-D365-CRM-9.png\" target=\"_blank\" rel=\"noopener noreferrer\"><img decoding=\"async\" class=\"aligncenter wp-image-28432 size-full\" src=\"https:\/\/www.inogic.com\/blog\/wp-content\/uploads\/2021\/06\/Load-data-in-D365-CRM-9.png\" alt=\"Load data in D365 CRM \" width=\"1118\" height=\"674\" srcset=\"https:\/\/www.inogic.com\/blog\/wp-content\/uploads\/2021\/06\/Load-data-in-D365-CRM-9.png 1118w, https:\/\/www.inogic.com\/blog\/wp-content\/uploads\/2021\/06\/Load-data-in-D365-CRM-9-300x181.png 300w, https:\/\/www.inogic.com\/blog\/wp-content\/uploads\/2021\/06\/Load-data-in-D365-CRM-9-768x463.png 768w, https:\/\/www.inogic.com\/blog\/wp-content\/uploads\/2021\/06\/Load-data-in-D365-CRM-9-1024x617.png 1024w, https:\/\/www.inogic.com\/blog\/wp-content\/uploads\/2021\/06\/Load-data-in-D365-CRM-9-660x398.png 660w\" sizes=\"(max-width: 1118px) 100vw, 1118px\" \/><\/a><\/p>\n<p style=\"text-align: justify;\"><strong><em>Note:<\/em><\/strong><em> I couldn\u2019t get the option\/behaviour to perform only <strong>Update <\/strong>operation instead of using Upsert. <\/em><\/p>\n<p style=\"text-align: justify;\"><strong>Conclusion:<\/strong><\/p>\n<p style=\"text-align: justify;\">As illustrated above, with the help of Azure Copy Data Activity tool, we can load data in Dynamics 365 CRM.<\/p>\n<p style=\"text-align: left;\">Reference link: <a href=\"https:\/\/docs.microsoft.com\/en-us\/azure\/data-factory\/quickstart-create-data-factory-copy-data-tool#start-the-copy-data-tool\" target=\"_blank\" rel=\"noopener noreferrer\">https:\/\/docs.microsoft.com\/en-us\/azure\/data-factory\/quickstart-create-data-factory-copy-data-tool#start-the-copy-data-tool<\/a><\/p>\n<p style=\"text-align: justify;\"><a href=\"https:\/\/www.inogic.com\/product\/productivity-apps\/undo-restore-recover-deleted-dynamics-365-crm-records\" target=\"_blank\" rel=\"noopener noreferrer\"><img decoding=\"async\" class=\"wp-image-28445 size-full\" src=\"https:\/\/www.inogic.com\/blog\/wp-content\/uploads\/2021\/06\/c2u.jpg\" alt=\"Click2Undo\" width=\"800\" height=\"200\" srcset=\"https:\/\/www.inogic.com\/blog\/wp-content\/uploads\/2021\/06\/c2u.jpg 800w, https:\/\/www.inogic.com\/blog\/wp-content\/uploads\/2021\/06\/c2u-300x75.jpg 300w, https:\/\/www.inogic.com\/blog\/wp-content\/uploads\/2021\/06\/c2u-768x192.jpg 768w, https:\/\/www.inogic.com\/blog\/wp-content\/uploads\/2021\/06\/c2u-660x165.jpg 660w\" sizes=\"(max-width: 800px) 100vw, 800px\" \/><\/a><\/p>\n","protected":false},"excerpt":{"rendered":"<p>Introduction We recently had a business requirement to load data in Dynamics 365 CRM. We had a case where the user will create Account records in a CRM and at the end of the day, it should load records in the other Dynamics 365 CRM. To achieve this we have used the Azure Copy Data\u2026 <span class=\"read-more\"><a href=\"https:\/\/www.inogic.com\/blog\/2021\/06\/load-data-in-dynamics-365-crm-using-azure-copy-data-activity-tool\/\">Read More &raquo;<\/a><\/span><\/p>\n","protected":false},"author":13,"featured_media":0,"comment_status":"closed","ping_status":"closed","sticky":false,"template":"","format":"standard","meta":{"om_disable_all_campaigns":false,"_monsterinsights_skip_tracking":false,"_monsterinsights_sitenote_active":false,"_monsterinsights_sitenote_note":"","_monsterinsights_sitenote_category":0,"footnotes":""},"categories":[5],"tags":[2333],"class_list":["post-28423","post","type-post","status-publish","format-standard","hentry","category-azure-functions","tag-azure-copy-data-activity"],"aioseo_notices":[],"_links":{"self":[{"href":"https:\/\/www.inogic.com\/blog\/wp-json\/wp\/v2\/posts\/28423","targetHints":{"allow":["GET"]}}],"collection":[{"href":"https:\/\/www.inogic.com\/blog\/wp-json\/wp\/v2\/posts"}],"about":[{"href":"https:\/\/www.inogic.com\/blog\/wp-json\/wp\/v2\/types\/post"}],"author":[{"embeddable":true,"href":"https:\/\/www.inogic.com\/blog\/wp-json\/wp\/v2\/users\/13"}],"replies":[{"embeddable":true,"href":"https:\/\/www.inogic.com\/blog\/wp-json\/wp\/v2\/comments?post=28423"}],"version-history":[{"count":0,"href":"https:\/\/www.inogic.com\/blog\/wp-json\/wp\/v2\/posts\/28423\/revisions"}],"wp:attachment":[{"href":"https:\/\/www.inogic.com\/blog\/wp-json\/wp\/v2\/media?parent=28423"}],"wp:term":[{"taxonomy":"category","embeddable":true,"href":"https:\/\/www.inogic.com\/blog\/wp-json\/wp\/v2\/categories?post=28423"},{"taxonomy":"post_tag","embeddable":true,"href":"https:\/\/www.inogic.com\/blog\/wp-json\/wp\/v2\/tags?post=28423"}],"curies":[{"name":"wp","href":"https:\/\/api.w.org\/{rel}","templated":true}]}}