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) »
  • Update only existing contacts on import - do not create new?
Pages: [1]

Author Topic: Update only existing contacts on import - do not create new?  (Read 832 times)

abeverley

  • I’m new here
  • *
  • Posts: 12
  • Karma: 3
  • CiviCRM version: 4.1.2
  • CMS version: Drupal 7
  • MySQL version: 5.1.49 (Debian)
  • PHP version: 5.3.3 (Debian)
Update only existing contacts on import - do not create new?
May 06, 2012, 12:07:59 pm
Hi,

Is there a way to only update contacts, but not create new when uploading? There are various "For duplicate contacts" options, but not for that I don't think.

The reason is that I have a long list of email addresses that I need to set the "do not email" option for. However, within the list are lots of invalid email addresses, which will be uploaded as new contacts if I do an update.

I know that I could strip out the invalid email addresses before upload, but it would be nice if I could do it directly with the upload feature.

If the functionality is not there, would a patch be considered to add this function?

Thanks,

Andy

Donald Lobo

  • Administrator
  • I’m (like) Lobo ;)
  • *****
  • Posts: 15963
  • Karma: 470
    • CiviCRM site
  • CiviCRM version: 4.2+
  • CMS version: Drupal 7, Joomla 2.5+
  • MySQL version: 5.5.x
  • PHP version: 5.4.x
Re: Update only existing contacts on import - do not create new?
May 06, 2012, 04:18:00 pm

Dont think a feature like this exists.

We do get the occassional request for "update only" or "create only". Not sure if it makes sense to add and complicate import even more :(

There is a proposal to implement an import API and rewrite import using API v3 etc and make it more flexible. I suspect something like the below should be achievable via hooks and a custom extension going forward

lobo
A new CiviCRM Q&A resource needs YOUR help to get started. Visit our StackExchange proposed site, sign up and vote on 5 questions

abeverley

  • I’m new here
  • *
  • Posts: 12
  • Karma: 3
  • CiviCRM version: 4.1.2
  • CMS version: Drupal 7
  • MySQL version: 5.1.49 (Debian)
  • PHP version: 5.3.3 (Debian)
Re: Update only existing contacts on import - do not create new?
May 07, 2012, 01:07:49 am
Thanks for the prompt reply. That's fair enough - I can see that the upload feature could get pretty unwieldy!

Andy

Pages: [1]
  • CiviCRM Community Forums (archive) »
  • Old sections (read-only, deprecated) »
  • Support »
  • Using CiviCRM »
  • Using Import (Moderator: Yashodha Chaku) »
  • Update only existing contacts on import - do not create new?

This forum was archived on 2017-11-26.