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) »
  • Automatic import - non human driven
Pages: [1]

Author Topic: Automatic import - non human driven  (Read 957 times)

Masta

  • Guest
Automatic import - non human driven
January 09, 2011, 10:47:24 am
Hello,
would it be possibile to have the import procedures to run automatically, with no human needed to launch them, let's say every night?

Cheers

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: Automatic import - non human driven
January 09, 2011, 11:21:13 am
You cannot use current import feature for this. But you can write simple import script which is specific to your CSV file and setup cron to run it every night.

Hth
Kurund
Found this reply helpful? Support CiviCRM

Hershel

  • Forum Godess / God
  • I’m (like) Lobo ;)
  • *****
  • Posts: 4640
  • Karma: 176
    • CiviHosting
  • CiviCRM version: Latest
  • CMS version: Mostly WordPress and Drupal
Re: Automatic import - non human driven
January 09, 2011, 12:26:54 pm
You could import a CSV as Kurund said, or you could write a script to import any type of data. The real point to be made here is that you would have to write the script initially do whatever import it will be and then it could run every night by itself.
CiviHosting and CiviOnline -- The CiviCRM hosting experts, since 2007

See here for the official: What to do if you think you've found a bug.

Masta

  • Guest
Re: Automatic import - non human driven
January 10, 2011, 01:50:00 am
Thanks everyone!

Any advice on where to put hands? I mean on which tables do I have to work? Could my script simply add records to the civicrm_contact table?

Thanks again

xavier

  • Forum Godess / God
  • I’m (like) Lobo ;)
  • *****
  • Posts: 4453
  • Karma: 161
    • Tech To The People
  • CiviCRM version: yes probably
  • CMS version: drupal
Re: Automatic import - non human driven
January 10, 2011, 02:09:03 am
Hi,

Don't touch directly the db, that recipes for problems and future incompatibilities.

Use the api, and I'd suggest starting by reading the relevant chapters in our book:
http://en.flossmanuals.net/CiviCRM/DevelopAPI

Good luck

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

Hershel

  • Forum Godess / God
  • I’m (like) Lobo ;)
  • *****
  • Posts: 4640
  • Karma: 176
    • CiviHosting
  • CiviCRM version: Latest
  • CMS version: Mostly WordPress and Drupal
Re: Automatic import - non human driven
January 10, 2011, 02:49:51 am
I would strongly agree with Xavier--don't try to insert data directly into the database. The API is the way to go.
CiviHosting and CiviOnline -- The CiviCRM hosting experts, since 2007

See here for the official: What to do if you think you've found a bug.

Pages: [1]
  • CiviCRM Community Forums (archive) »
  • Old sections (read-only, deprecated) »
  • Support »
  • Using CiviCRM »
  • Using Import (Moderator: Yashodha Chaku) »
  • Automatic import - non human driven

This forum was archived on 2017-11-26.