Showing posts with label Data Import. Show all posts
Showing posts with label Data Import. Show all posts

Thursday, March 26, 2015

Create Entity and bulk Attribute with Data Import in MS CRM

In MS CRM when wants to create entity with more attributes, easy option is data Import tool.
In CRM you can create entity and attributes with Data Import tool.
To create entity with Data Import tool

1. Create Excel file with all required attributes in it.

Keep First Column as Attribute Name and enter values with respective data type. 


If there are any pick list columns and want to create all values also, and then need to add those many row in excel—each row one pick list value.





2.  Save this Excel file as CSV file.

3. Now Open CRM Data Import wizard and upload csv file created.

4. Click Next, if CSV file with comma (,) as Field delimiter and Quotation mark (“) as Data delimiter, then no need to change delimiter settings, Otherwise settings change as per CSV.
In Delimiter settings check First row contains Columns Headings option.


        
5. In Next screen select Default (Automatic Mapping) and click next

6. Here to create new entity need to select “Create New” Option in Action, Enter Record Type Name, plural Name and Primary Field



 Once all information entered new Entity Name will be shown in Microsoft Dynamics CRM record Type.


      7. Click next, now you need to Create a map attributes.

 8. For Each Source Field, select Action – Create New Field option
       
     9. Enter Attribute name, if it is different from CSV file, and select Appropriate Data type.
Text: 

Option Set:


Look up:


Two options:


10.  Once data type and attribute entered this field is shown as mapped.



11. Repeat same process for all other attributes.

12. Once all attributes are mapped, Click Next and start importing.

13. CRM will create New Entity and Attributes and then starts importing data.

When mapping any lookup values, you have to map with unique column in parent entity, otherwise that record will not be imported and error will be thrown. 


Once Data Imported.. you will have Entity with attributes and Data also.. 


Tuesday, January 27, 2015

Resolve Circular Reference in CRM data import

Generally when importing data into CRM.. most of the time we will struggle when there is a circular reference between entities.

Suppose if we want to import Account (Company) and contact information into CRM. and want to update company's primary contact which is in contact and Contact's company information which is in Account.

In this case easiest way to import and update circular reference is import both entities data together as zip.

Compress contact.csv and account.csv file into one .zip file, and then using CRM Data Import import zip file.
CRM is supporting for .zip, xml, text and csv file.

Once you uploaded zip file in import wizard, you can select individual file and create mapping for
each file





Map your fields properly and import.. 

You can load only 8 MB of file (xml, csv, text) or 32 mb of zip file for data import.