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) »
  • Soft Credits Import
Pages: [1]

Author Topic: Soft Credits Import  (Read 1466 times)

lkmorris

  • Guest
Soft Credits Import
March 31, 2009, 12:46:03 pm
Since there is not currently an import for soft credits built into CiviContribute, I asked my developer if he would write a script to do the import directly from a comma delimited file into the database. I want to import a contribution for an organization and give a soft credit to an individual.

His statement to me was, "we're talking about pushing data around underneath civicrm's watchful gaze. how do their developers feel about this? for instance, they seem to have a very tight activity tracking/logging system, which we either have to support or ignore. are we going to blow it's mind by doing what we're talking about?"

He doesn't have the expertise/time to create this functionality using CiviCRM hooks or API's. I was hoping that importing directly to the database would be permissible?

Regards,

Pogo

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: Soft Credits Import
March 31, 2009, 01:06:56 pm

go for it :)

i'd make sure that the FK dependencies are satisfied (the DB will throw an error if not). Your developer might want to look at and potentially extend a combined contact contribution script we recently wrote:

http://svn.civicrm.org/civicrm/branches/v2.2/bin/ContributionProcessor.php

and potentially extend that with soft credit functionality. Please contribute your changes back if you do extend it :)

thanx

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

lkmorris

  • Guest
Re: Soft Credits Import
April 01, 2009, 08:43:47 am
Thank you! I will gladly contribute it back.

Regards,

Pogo

Dave Greenberg

  • Administrator
  • I’m (like) Lobo ;)
  • *****
  • Posts: 5760
  • Karma: 226
    • My CiviCRM Blog
Re: Soft Credits Import
April 01, 2009, 04:08:24 pm
Actually the 2.2 release does support assigning a Soft Credit to a contact while importing contribution records. The soft credit is mapped to an existing contact record either via the strict "dupe matching" fields, or internal (civicrm) contact ID, or an external identifier.

If you're wanting to import (assign) soft credits for contributions already recorded in CiviCRM, I think you can do this by importing in "update mode" (caveat - haven't tried this path).

You can try this on the public demo if you construct a simple test CSV file w/ fake or de-sensitized data:

http://drupal.demo.civicrm.org/civicrm/contribute/import?reset=1
Protect your investment in CiviCRM by  becoming a Member!

Pages: [1]
  • CiviCRM Community Forums (archive) »
  • Old sections (read-only, deprecated) »
  • Support »
  • Using CiviCRM »
  • Using Import (Moderator: Yashodha Chaku) »
  • Soft Credits Import

This forum was archived on 2017-11-26.