CiviCRM Community Forums (archive)

*

News:

Have a question about CiviCRM?
Get it answered quickly at the new
CiviCRM Stack Exchange Q+A site

This forum was archived on 25 November 2017. Learn more.
How to get involved.
What to do if you think you've found a bug.



  • CiviCRM Community Forums (archive) »
  • Old sections (read-only, deprecated) »
  • General Discussion (please no support requests here!) (Moderator: Michał Mach) »
  • Moving data from Microsoft Dynamics CRM
Pages: [1]

Author Topic: Moving data from Microsoft Dynamics CRM  (Read 2725 times)

druderman

  • I’m new here
  • *
  • Posts: 24
  • Karma: 0
  • CiviCRM version: 4.1+
  • CMS version: Drupal 7
  • MySQL version: 5.0.77 and 5.1
  • PHP version: 5.2.13
Moving data from Microsoft Dynamics CRM
January 11, 2012, 06:05:05 am
I need to do a one-time move of Contacts from Microsoft Dynamics CRM to CiviCRM.
I certainly know I can do this.
It would also be nice to preserve Creation Date, Modification Date, Notes, and Owners or Business Units (for grouping purposes) from MS CRM in the process as well.
Does anyone have some details or links on best practices on how to do so?

Some options:
- Export MS CRM to CSV, use CiviCRM import.
- Export MS CRM to CSV, write custom code to load.
- Use CiviMigrate?

Thanks,

-dave

xavier

  • Forum Godess / God
  • I’m (like) Lobo ;)
  • *****
  • Posts: 4453
  • Karma: 161
    • Tech To The People
  • CiviCRM version: yes probably
  • CMS version: drupal
Re: Moving data from Microsoft Dynamics CRM
January 11, 2012, 07:09:58 am
Hi,

It depends of how many contacts.

I'd go for a custom code with or without using the migrate module (great post from Eileen recently) and using the api.

X+
-Hackathon and data journalism about the European parliament 24-26 jan. Watch out the result

druderman

  • I’m new here
  • *
  • Posts: 24
  • Karma: 0
  • CiviCRM version: 4.1+
  • CMS version: Drupal 7
  • MySQL version: 5.0.77 and 5.1
  • PHP version: 5.2.13
Re: Moving data from Microsoft Dynamics CRM
January 11, 2012, 08:25:29 am
Good question. I have about 55,000 Contacts in MS CRM.

xavier

  • Forum Godess / God
  • I’m (like) Lobo ;)
  • *****
  • Posts: 4453
  • Karma: 161
    • Tech To The People
  • CiviCRM version: yes probably
  • CMS version: drupal
Re: Moving data from Microsoft Dynamics CRM
January 11, 2012, 11:11:36 am
Hi,

Then definitely worthwhile scripting it (easier to run, test & re-run).

I recently migrated from act, some tricks:
Store the id used in the source crm somewhere, and test before creating it, so it makes it easier to run & re-run (you will have to, even for a one shot)

if it's using a guid for contacts, its format it too long to store in the civicrm external field, so I MD5'ed it.
for groups I used the description field (and emptied them when I was sure the upgrade went well)
for activities (not sure you're going to use them), I used the "location" field

Good luck!

X+
-Hackathon and data journalism about the European parliament 24-26 jan. Watch out the result

druderman

  • I’m new here
  • *
  • Posts: 24
  • Karma: 0
  • CiviCRM version: 4.1+
  • CMS version: Drupal 7
  • MySQL version: 5.0.77 and 5.1
  • PHP version: 5.2.13
Re: Moving data from Microsoft Dynamics CRM
January 30, 2012, 05:46:33 am
Because of a business decision, the number of contacts has been trimmed down to 17,000.

I've written a reasonable SQL Server T-SQL query to generate the Contacts as a CSV file. (I've put off dealing with the Notes for the moment.)
I was planning on using CiviCRM's Import facility to import the data.
I think I have to do some investigation to figure out how to get it to import text fields that have embedded commas (field separator).
My initial experiment tells me, it doesn't support regular text fields (which may or may not contain the comma field separator) surrounded by double quotes in CSV files.

As a work-around, I can export MS CRM as pipe delimited text instead.

-dave
« Last Edit: January 30, 2012, 06:45:05 am by druderman »

Dave Greenberg

  • Administrator
  • I’m (like) Lobo ;)
  • *****
  • Posts: 5760
  • Karma: 226
    • My CiviCRM Blog
Re: Moving data from Microsoft Dynamics CRM
February 02, 2012, 06:23:21 am
Dave - Would be great if you could write-up your process for this migration on the CiviCRM blog once you've got it working. I'm sure others would be able to benefit!
Protect your investment in CiviCRM by  becoming a Member!

xavier

  • Forum Godess / God
  • I’m (like) Lobo ;)
  • *****
  • Posts: 4453
  • Karma: 161
    • Tech To The People
  • CiviCRM version: yes probably
  • CMS version: drupal
Re: Moving data from Microsoft Dynamics CRM
February 02, 2012, 06:53:33 am
@Dave (too many daves in that thread ;)

I'd suggest you to write a custom script using the api, it will make it way easier to test, re-run if there is a crash, add custom validation rules and all the business rules you will have to deal with (the kind "if column 3 is not empty uses it as the main phone", otherwise take the phone from the organisation unless this and that...)

X+
-Hackathon and data journalism about the European parliament 24-26 jan. Watch out the result

Pages: [1]
  • CiviCRM Community Forums (archive) »
  • Old sections (read-only, deprecated) »
  • General Discussion (please no support requests here!) (Moderator: Michał Mach) »
  • Moving data from Microsoft Dynamics CRM

This forum was archived on 2017-11-26.