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) »
  • How to update one field based on matching email address?
Pages: [1]

Author Topic: How to update one field based on matching email address?  (Read 1355 times)

daveatkins

  • I post occasionally
  • **
  • Posts: 68
  • Karma: 2
  • CiviCRM version: 4.1.6
  • CMS version: Drupal 6.28
  • MySQL version: 5.1.41
  • PHP version: 5.2.10
How to update one field based on matching email address?
December 20, 2011, 09:57:07 am
I have a csv text file of email addresses and job titles and other fields I would like to update against existing civicrm contact records. Is there a way to use import to update existing civicrm contact records? I DO NOT want additional contact records created for rows in the import file that do not match--so technically, I'm not doing an import...it is an import of one field only to existing data.

Another option is to go to the database directly, but I get nervous about performing multi-join updates like that and would prefer to simply import this field safely without disturbing any other existing data.

Kurund Jalmi

  • Administrator
  • I’m (like) Lobo ;)
  • *****
  • Posts: 4169
  • Karma: 128
    • CiviCRM
  • CiviCRM version: 4.x, future
  • CMS version: Drupal 7, Joomla 3.x
  • MySQL version: 5.5.x
  • PHP version: 5.4.x
Re: How to update one field based on matching email address?
December 20, 2011, 10:14:16 am
Quote
I have a csv text file of email addresses and job titles and other fields I would like to update against existing civicrm contact records. Is there a way to use import to update existing civicrm contact records? I DO NOT want additional contact records created for rows in the import file that do not match--so technically, I'm not doing an import...it is an import of one field only to existing data.

You can update existing contacts my matching email address.
Check http://book.civicrm.org/user/working-with-your-data/importing-data

HTh
Kurund
Found this reply helpful? Support CiviCRM

daveatkins

  • I post occasionally
  • **
  • Posts: 68
  • Karma: 2
  • CiviCRM version: 4.1.6
  • CMS version: Drupal 6.28
  • MySQL version: 5.1.41
  • PHP version: 5.2.10
Re: How to update one field based on matching email address?
December 20, 2011, 12:41:18 pm
this process can be used, however after performing the import, you will need to delete all the contacts that were not duplicates. Example, you have a database of 10,000 contacts. From another database, you obtain 15,000 email addresses along with some other information you want to associate in Civi. If you do an import with fill option, you will update 10,000 contacts and create 5,000 new contacts that consist only of an email address and the additional field.

I would prefer to simply do an update-only import--do not create any new records.

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: How to update one field based on matching email address?
December 20, 2011, 02:09:08 pm
if you want to work with what is currently available it  may be easy enough just to do the import and add all contacts to a Group at Step 3 - then eg use Search Builder and find all contacts in that group with ID > xx where xx is the first of the 'new' records that was created - and then Delete them
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

Pages: [1]
  • CiviCRM Community Forums (archive) »
  • Old sections (read-only, deprecated) »
  • Support »
  • Using CiviCRM »
  • Using Import (Moderator: Yashodha Chaku) »
  • How to update one field based on matching email address?

This forum was archived on 2017-11-26.