locked
Bulk Imort zip file using MS CRM SDK RRS feed

  • Question

  • Hello,

    Can I import data in MS CRM 2015 in zip file using bulk import using MS CRM SDK ?

    I know I can do this in wizard, but I wondering, can I do the same using MS CRM SDK(c#)?

    Import all files(multiple entities) in one zip file using default map.

    Thanks


    Saurabh

    Monday, January 11, 2016 1:19 PM

All replies

  • Hello,

    You definitely can do it. Recheck this article - https://msdn.microsoft.com/en-us/library/hh547396.aspx It describes import from plain csv file but I believe code can be modified to use zip file as a source.


    Dynamics CRM MVP
    My blog

    Monday, January 11, 2016 1:53 PM
    Moderator
  • Hello,

    Thank you for answering.

    This will require lot of code, I need to import data for 15-20 entities , this logic  requires code to map entity first, then map each column.

    As microsoft is already providing wizand, can we reuse any SDK API and do default mapping to import data.

    Thanks,


    Saurabh

    Monday, January 11, 2016 2:00 PM

  • As microsoft is already providing wizand, can we reuse any SDK API and do default mapping to import data.


    After short investigation I can assume that default mapping is available only internally for import wizard so you will have to write code...

    Dynamics CRM MVP
    My blog

    Monday, January 11, 2016 2:38 PM
    Moderator
  • Hello,

    Is there any OOB way to identify import sequence as we are importing multiple entities using SDK API (Zipfile). When we do bulk import using wizard it automatically identifies the sequence of import, can we reuse thet logic.

    Thanks,



    Saurabh

    Thursday, January 21, 2016 6:49 AM
  • I believe you can. All you need is .Net Reflector or other disassembler and installed version of CRM. You can get source codes using mentioned disasembler and find the way it works.

    Dynamics CRM MVP
    My blog

    Thursday, January 21, 2016 7:55 AM
    Moderator
  • Hi ,

    Is there a way to identify import order of entity based on dependencies or metadata or from tool provide in SqlServer.

    One more clarification.

    Account to Contact have 1:N relation also N:1. Is there any way to do bulk import without need of update.


    Thanks,


    Saurabh

    Friday, January 22, 2016 1:11 PM