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) »
  • Support »
  • Using CiviCRM »
  • Using Core CiviCRM Functions (Moderator: Yashodha Chaku) »
  • Relationships with external identifier
Pages: [1]

Author Topic: Relationships with external identifier  (Read 1048 times)

jakedeo

  • I’m new here
  • *
  • Posts: 9
  • Karma: 2
Relationships with external identifier
May 26, 2008, 03:15:53 pm
I have a pretty decently sized access database that needs to be imported into civi 2.02. There are multiple tables linked with a contactID from a previous M$ application. I want to import the basic contact info using this as an external ID and then the relationships (such as groups they belong to and some 1-1 relationships).

I have a pretty good idea of how to do this and the first batch is in CiviCRM, but what now? What is the best way to organize the rest of this import? I have searched all over for some kind of a better idea and haven't found much.

Thanks so much for any help with this.

geilhufe

  • I post frequently
  • ***
  • Posts: 293
  • Karma: 33
    • Social Source Software
Re: Relationships with external identifier
May 27, 2008, 05:57:34 pm
In general, you want to import your data in layers.

Construct multiple csv files, each keyed to the external ID.

Import your base csv to create the basic constituent records. Then use the add/update function of the import wizard to layer in each new csv.

Try it with a very small record set first so you get all your formating correct. Also assume it will take awhile as you will generally need to clean up your csv files as CiviCRM identifies problems with the data. 
Drupal and CiviCRM consulting, strategy and configuration
http://www.social-source.com/

Dave Greenberg

  • Administrator
  • I’m (like) Lobo ;)
  • *****
  • Posts: 5760
  • Karma: 226
    • My CiviCRM Blog
Re: Relationships with external identifier
May 27, 2008, 08:54:12 pm
Adding to David Geilhufe's comments below - you can "add contacts to a Group" during import. BUT you'll have to divide up your import by the Group you want to add them too. If this is too onerous, you may need to write a custom SQL script to handle the group assignments (check out the 2.0 ERD in the Develop section of the documentation for an overview of how this is stored in the DB).
Protect your investment in CiviCRM by  becoming a Member!

Pages: [1]
  • CiviCRM Community Forums (archive) »
  • Old sections (read-only, deprecated) »
  • Support »
  • Using CiviCRM »
  • Using Core CiviCRM Functions (Moderator: Yashodha Chaku) »
  • Relationships with external identifier

This forum was archived on 2017-11-26.