{"id":2357,"date":"2016-07-28T07:15:34","date_gmt":"2016-07-28T07:15:34","guid":{"rendered":"http:\/\/himbap.com\/blog\/?p=2357"},"modified":"2016-07-28T07:15:34","modified_gmt":"2016-07-28T07:15:34","slug":"creating-custom-data-map-for-import","status":"publish","type":"post","link":"https:\/\/himbap.com\/blog\/?p=2357","title":{"rendered":"Creating Custom Data Map for Import"},"content":{"rendered":"<p>We have different option to enter customer related data into CRM, we can enter it manually or can have some automation to feed data into CRM. Dynamics CRM also has an out of the box data import utility which we can use to feed data into Dynamics CRM using different formats like \u2013xml, csv, txt, xlsx and zip. To feed data into CRM we need data import template where we can enter required data. We can design our own data template or can download Data Import Template from Data Management section. While using data import template we don\u2019t need to do any field mapping as CRM do mapping automatically. We can also design custom data import template and can use exact display name of the field for automatic mapping of the columns during import process.<br \/>\n<a href=\"https:\/\/himbap.com\/blog\/wp-content\/uploads\/2016\/07\/dataimportmap1.png\"><img decoding=\"async\" loading=\"lazy\" class=\" size-medium wp-image-2361 aligncenter\" src=\"https:\/\/himbap.com\/blog\/wp-content\/uploads\/2016\/07\/dataimportmap1-300x151.png\" alt=\"dataimportmap1\" width=\"300\" height=\"151\" srcset=\"https:\/\/himbap.com\/blog\/wp-content\/uploads\/2016\/07\/dataimportmap1-300x151.png 300w, https:\/\/himbap.com\/blog\/wp-content\/uploads\/2016\/07\/dataimportmap1-624x314.png 624w, https:\/\/himbap.com\/blog\/wp-content\/uploads\/2016\/07\/dataimportmap1.png 790w\" sizes=\"(max-width: 300px) 100vw, 300px\" \/><\/a><br \/>\nBut some time when designing custom template we may not use exact display name of target entity fields and in that case we need to define custom map to complete data import. In this article we are going to demonstrate how to design custom data maps.<br \/>\nWe can import a single entity or multi entity records using data templates so we can create single entity data map or multi entity data map. While designing data map we can define it under <strong>EntitiesPerFile<\/strong> like following:<\/p>\n<p><strong><span style=\"color: #000000; font-family: Calibri; font-size: medium;\">&lt;EntitiesPerFile&gt;Single&lt;\/EntitiesPerFile&gt; or &lt;EntitiesPerFile&gt;Multiple&lt;\/EntitiesPerFile&gt;<\/span><\/strong><\/p>\n<p>Let\u2019s take an example we have a custom entity event and we want to import data to following different data type fields:<br \/>\n<a href=\"https:\/\/himbap.com\/blog\/wp-content\/uploads\/2016\/07\/dataimportmap2.png\"><img decoding=\"async\" loading=\"lazy\" class=\" size-medium wp-image-2363 aligncenter\" src=\"https:\/\/himbap.com\/blog\/wp-content\/uploads\/2016\/07\/dataimportmap2-300x26.png\" alt=\"dataimportmap2\" width=\"300\" height=\"26\" srcset=\"https:\/\/himbap.com\/blog\/wp-content\/uploads\/2016\/07\/dataimportmap2-300x26.png 300w, https:\/\/himbap.com\/blog\/wp-content\/uploads\/2016\/07\/dataimportmap2.png 615w\" sizes=\"(max-width: 300px) 100vw, 300px\" \/><\/a><br \/>\nWe can use following attribute map for text, currency, number, two option, date time fields:<br \/>\n<a href=\"https:\/\/himbap.com\/blog\/wp-content\/uploads\/2016\/07\/dataimport3.png\"><img decoding=\"async\" loading=\"lazy\" class=\" size-medium wp-image-2358 aligncenter\" src=\"https:\/\/himbap.com\/blog\/wp-content\/uploads\/2016\/07\/dataimport3-300x53.png\" alt=\"dataimport3\" width=\"300\" height=\"53\" srcset=\"https:\/\/himbap.com\/blog\/wp-content\/uploads\/2016\/07\/dataimport3-300x53.png 300w, https:\/\/himbap.com\/blog\/wp-content\/uploads\/2016\/07\/dataimport3-624x109.png 624w, https:\/\/himbap.com\/blog\/wp-content\/uploads\/2016\/07\/dataimport3.png 771w\" sizes=\"(max-width: 300px) 100vw, 300px\" \/><\/a><br \/>\nTo map lookup fields, we need to use following attribute map:<br \/>\n<a href=\"https:\/\/himbap.com\/blog\/wp-content\/uploads\/2016\/07\/dataimport4.png\"><img decoding=\"async\" loading=\"lazy\" class=\" size-medium wp-image-2359 aligncenter\" src=\"https:\/\/himbap.com\/blog\/wp-content\/uploads\/2016\/07\/dataimport4-300x127.png\" alt=\"dataimport4\" width=\"300\" height=\"127\" srcset=\"https:\/\/himbap.com\/blog\/wp-content\/uploads\/2016\/07\/dataimport4-300x127.png 300w, https:\/\/himbap.com\/blog\/wp-content\/uploads\/2016\/07\/dataimport4-624x264.png 624w, https:\/\/himbap.com\/blog\/wp-content\/uploads\/2016\/07\/dataimport4.png 715w\" sizes=\"(max-width: 300px) 100vw, 300px\" \/><\/a><br \/>\nAnd to map option set field, we need to provide all possible map, like following:<br \/>\n<a href=\"https:\/\/himbap.com\/blog\/wp-content\/uploads\/2016\/07\/dataimport5.png\"><img decoding=\"async\" loading=\"lazy\" class=\" size-medium wp-image-2360 aligncenter\" src=\"https:\/\/himbap.com\/blog\/wp-content\/uploads\/2016\/07\/dataimport5-300x181.png\" alt=\"dataimport5\" width=\"300\" height=\"181\" srcset=\"https:\/\/himbap.com\/blog\/wp-content\/uploads\/2016\/07\/dataimport5-300x181.png 300w, https:\/\/himbap.com\/blog\/wp-content\/uploads\/2016\/07\/dataimport5.png 582w\" sizes=\"(max-width: 300px) 100vw, 300px\" \/><\/a><br \/>\nIf our import file have some option which is not available in CRM, it will be added to that option set as a new value during import by CRM. Finally we can include all attribute map using following schema and can import to CRM by select import option under data map:<br \/>\n<a href=\"https:\/\/himbap.com\/blog\/wp-content\/uploads\/2016\/07\/datamap6.png\"><img decoding=\"async\" loading=\"lazy\" class=\" size-medium wp-image-2364 aligncenter\" src=\"https:\/\/himbap.com\/blog\/wp-content\/uploads\/2016\/07\/datamap6-300x102.png\" alt=\"datamap6\" width=\"300\" height=\"102\" srcset=\"https:\/\/himbap.com\/blog\/wp-content\/uploads\/2016\/07\/datamap6-300x102.png 300w, https:\/\/himbap.com\/blog\/wp-content\/uploads\/2016\/07\/datamap6-624x212.png 624w, https:\/\/himbap.com\/blog\/wp-content\/uploads\/2016\/07\/datamap6.png 808w\" sizes=\"(max-width: 300px) 100vw, 300px\" \/><\/a><br \/>\nCRM will validate data map during import and will display if there is any mismatch in entity or field name. Similarly we can create multiple entity data map using following schema:<br \/>\n<a href=\"https:\/\/himbap.com\/blog\/wp-content\/uploads\/2016\/07\/datamap7.png\"><img decoding=\"async\" loading=\"lazy\" class=\" size-medium wp-image-2365 aligncenter\" src=\"https:\/\/himbap.com\/blog\/wp-content\/uploads\/2016\/07\/datamap7-300x65.png\" alt=\"datamap7\" width=\"300\" height=\"65\" srcset=\"https:\/\/himbap.com\/blog\/wp-content\/uploads\/2016\/07\/datamap7-300x65.png 300w, https:\/\/himbap.com\/blog\/wp-content\/uploads\/2016\/07\/datamap7-624x135.png 624w, https:\/\/himbap.com\/blog\/wp-content\/uploads\/2016\/07\/datamap7.png 900w\" sizes=\"(max-width: 300px) 100vw, 300px\" \/><\/a><\/p>\n","protected":false},"excerpt":{"rendered":"<p>We have different option to enter customer related data into CRM, we can enter it manually or can have some automation to feed data into CRM. Dynamics CRM also has an out of the box data import utility which we can use to feed data into Dynamics CRM using different formats like \u2013xml, csv, txt, xlsx and zip. To feed&#8230; <a href=\"https:\/\/himbap.com\/blog\/?p=2357\">Read more &raquo;<\/a><\/p>\n","protected":false},"author":1,"featured_media":0,"comment_status":"open","ping_status":"open","sticky":false,"template":"","format":"standard","meta":[],"categories":[371],"tags":[372,375,373,376,374],"_links":{"self":[{"href":"https:\/\/himbap.com\/blog\/index.php?rest_route=\/wp\/v2\/posts\/2357"}],"collection":[{"href":"https:\/\/himbap.com\/blog\/index.php?rest_route=\/wp\/v2\/posts"}],"about":[{"href":"https:\/\/himbap.com\/blog\/index.php?rest_route=\/wp\/v2\/types\/post"}],"author":[{"embeddable":true,"href":"https:\/\/himbap.com\/blog\/index.php?rest_route=\/wp\/v2\/users\/1"}],"replies":[{"embeddable":true,"href":"https:\/\/himbap.com\/blog\/index.php?rest_route=%2Fwp%2Fv2%2Fcomments&post=2357"}],"version-history":[{"count":3,"href":"https:\/\/himbap.com\/blog\/index.php?rest_route=\/wp\/v2\/posts\/2357\/revisions"}],"predecessor-version":[{"id":2368,"href":"https:\/\/himbap.com\/blog\/index.php?rest_route=\/wp\/v2\/posts\/2357\/revisions\/2368"}],"wp:attachment":[{"href":"https:\/\/himbap.com\/blog\/index.php?rest_route=%2Fwp%2Fv2%2Fmedia&parent=2357"}],"wp:term":[{"taxonomy":"category","embeddable":true,"href":"https:\/\/himbap.com\/blog\/index.php?rest_route=%2Fwp%2Fv2%2Fcategories&post=2357"},{"taxonomy":"post_tag","embeddable":true,"href":"https:\/\/himbap.com\/blog\/index.php?rest_route=%2Fwp%2Fv2%2Ftags&post=2357"}],"curies":[{"name":"wp","href":"https:\/\/api.w.org\/{rel}","templated":true}]}}