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) »
  • Batch (rather than interactive) import capability?
Pages: [1]

Author Topic: Batch (rather than interactive) import capability?  (Read 1465 times)

Erich

  • I post occasionally
  • **
  • Posts: 84
  • Karma: 1
Batch (rather than interactive) import capability?
September 14, 2010, 09:02:20 am
I just searched this "Using Import" forum for [batch] and didn't find what I was looking for... but maybe I'm just not using the right terminology.

I have several CSV files, one or two per CiviCRM instance (one instance for each of a large organization's individual chapters).  What I would like to be able to do is upload all the files to one (temporary) place on my server, then script the import of each of these files into its appropriate corresponding CiviCRM instance (i.e. without having to log in to each instance, specify the name of the import file to upload from my PC, specify whether the first row contains column names, specify what do do in case of duplicate records, specify what import profile to use, click continue, visually inspect the mapping to see that it's correct, click continue again, etc.)

Does such a capability exist?

xavier

  • Forum Godess / God
  • I’m (like) Lobo ;)
  • *****
  • Posts: 4453
  • Karma: 161
    • Tech To The People
  • CiviCRM version: yes probably
  • CMS version: drupal
Re: Batch (rather than interactive) import capability?
September 14, 2010, 10:18:45 am
No and that's been discussed in the past. That's looking for sponsors willing to pay it.

For your case. I would wrote a php script that reads the csv files and uses the api to put the datas in the right fields.

Not as scary as it sounds :)

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

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: Batch (rather than interactive) import capability?
September 14, 2010, 12:59:10 pm
you might want to search the Blog for Eileen's post about using TableWizard and Migrate for managing complex importing - not sure if it will provide a short cut for applying same approach to several instances but could be worth checking
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

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: Batch (rather than interactive) import capability?
September 14, 2010, 01:42:12 pm

also check:

http://civicrm.org/blogs/lobo/implementing-batch-import-api

would be really good for civi to have a decent batch import mechanism. Wanna step up and help make it happen?

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

Erich

  • I post occasionally
  • **
  • Posts: 84
  • Karma: 1
Re: Batch (rather than interactive) import capability?
September 19, 2010, 09:17:37 pm
Quote from: peterd on September 14, 2010, 12:59:10 pm
you might want to search the Blog for Eileen's post about using TableWizard and Migrate for managing complex importing - not sure if it will provide a short cut for applying same approach to several instances but could be worth checking

Are you referring to http://civicrm.org/blogs/eileen/civi-migrate-proof-concept ?

If so, that (being a solution for Drupal) doesn't help me, as I need a solution for Joomla... and unfortunately I need it by Friday :-(

So, I have the choice of manually importing 36 files, or learning enough PHP to read the uploaded CSV files and using the API to put the data in the right fields (which consist of a combination of the standard FirstName, MiddleName, LastName, InddividualSuffix, StreetAddress, City, State, Zip, Gender, and Birthdate... plus some custom fields that are in their own custom group).

From http://civicrm.org/blogs/lobo/implementing-batch-import-api I get the impression that this API is still being tested... is there an example PHP script that uses this API?  I'm willing to be it would be faster for me to copy/modify an existing example, rather than trying to write one from scratch.  In the software business, that's called "re-use", not "plagiarism"  :-)

Pages: [1]
  • CiviCRM Community Forums (archive) »
  • Old sections (read-only, deprecated) »
  • Support »
  • Using CiviCRM »
  • Using Import (Moderator: Yashodha Chaku) »
  • Batch (rather than interactive) import capability?

This forum was archived on 2017-11-26.