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 Import (Moderator: Yashodha Chaku) »
  • What is the meaning of DB fields?
Pages: [1]

Author Topic: What is the meaning of DB fields?  (Read 3616 times)

anyegongjue

  • Guest
What is the meaning of DB fields?
October 26, 2008, 04:56:40 pm
Hi there,

I want to import some contact data into "civicrm_contact". But when I try to map the field, I get some trouble.

I am new to civicrm, and I don't the meaning and usage of the DB fields. For example, what's the difference of "external_identifier", "legal_identifier", "primary_contact_id", "internal contact ID"?

If I get a simple User table like below, which field should I use to map the "ID"?

+++++++++++++++++++++++++++++++
ID    FirstName    LastName
1     Tim              Green
2     Tom             Smith
++++++++++++++++++++++++++++++++

If anyone who can provide a explanation about the DB fields, that will be great help!

Thanks!!!

SteveM

  • I post occasionally
  • **
  • Posts: 47
  • Karma: 3
    • OpenConcept Consulting, Inc.
Re: What is the meaning of DB fields?
October 27, 2008, 10:12:50 am
From the schema:
"legal_identifier": May be used for SSN, EIN/TIN, Household ID (census) or other applicable unique legal/government ID.
"external_identifier": Unique trusted external ID (generally from a legacy app/datasource). Particularly useful for deduping operations.
"primary_contact_id": Optional FK to Primary Contact for this household.
The "internal contact id" is a unique ID generated by and used in CiviCRM

It looks to me that you want your ID to be the "external identifier".

petednz

  • Forum Godess / God
  • I’m (like) Lobo ;)
  • *****
  • Posts: 4899
  • Karma: 193
    • Fuzion
  • CiviCRM version: 3.x - 4.x
  • CMS version: Drupal 6 and 7
Re: What is the meaning of DB fields?
October 29, 2008, 01:30:18 pm
Always best just to set up some contacts as you want them in civiCRM and then do an export of all those fields, that way you can 'reverse engineer' your data before you import. hope that makes sense
Sign up to StackExchange and get free expert advice: https://civicrm.org/blogs/colemanw/get-exclusive-access-free-expert-help

pete davis : www.fuzion.co.nz : connect + campaign + communicate

anyegongjue

  • Guest
Re: What is the meaning of DB fields?
October 29, 2008, 11:21:29 pm
I think I find the way to do it.

Thanks so much!


Pages: [1]
  • CiviCRM Community Forums (archive) »
  • Old sections (read-only, deprecated) »
  • Support »
  • Using CiviCRM »
  • Using Import (Moderator: Yashodha Chaku) »
  • What is the meaning of DB fields?

This forum was archived on 2017-11-26.