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) »
  • Developer Discussion (Moderator: Donald Lobo) »
  • Automatically (or automagically) create household records; the 3.0 version
Pages: [1]

Author Topic: Automatically (or automagically) create household records; the 3.0 version  (Read 1256 times)

wftl

  • I’m new here
  • *
  • Posts: 28
  • Karma: 4
    • Writer and Free Thinker at Large
Automatically (or automagically) create household records; the 3.0 version
November 10, 2009, 01:22:32 pm
Hello everyone,

One of my recurring CiviCRM requirements is to created household records based on existing contacts. I have in the past used the script by Giant Robot (described here http://forum.civicrm.org/index.php/topic,2735.0.html ) but it was created for the 2.0 codebase. Consequently, it no longer worked with 3.0. As it turns out, the changes required to make it work for 3.0.2 where relatively minimal. In the hope that this helps someone else, I submit the modified script here. Feel free to make changes, improve it, etc.

--
Marcel (Writer and Free Thinker at Large) Gagné
Note: This massagee wos nat speel or gramer-checkered.

Dave Greenberg

  • Administrator
  • I’m (like) Lobo ;)
  • *****
  • Posts: 5760
  • Karma: 226
    • My CiviCRM Blog
Re: Automatically (or automagically) create household records; the 3.0 version
November 10, 2009, 03:41:54 pm
Thx for updating and posting this! Can you create a page on the wiki (with the script attached) in the 3rd Party Modules section - to make it easier for others to find it?

http://wiki.civicrm.org/confluence/display/CRMDOC/Third+Party+Modules
Protect your investment in CiviCRM by  becoming a Member!

robinhood

  • I post frequently
  • ***
  • Posts: 153
  • Karma: 6
  • CiviCRM version: 4.5.5
  • CMS version: Drupal 7.34
  • MySQL version: 5.1.56
  • PHP version: 5.3.5
Re: Automatically (or automagically) create household records; the 3.0 version
January 13, 2011, 05:53:57 pm
This script has been a great thing for my installation and we make frequent use of it.  The problem now is that this version is not compatible with civicrm version 3.3. 

I think that the new issues are as follows:
1.  The database now contains deleted records marked by civicrm_contact.is_deleted
2.  There is no longer a field mail_to_household_id
3.  Only V2 API calls are available
and maybe other issues as well.

Fixing this is beyond my skills unfortunately.  I emailed the nice people at Giant Robot to ask about an update but I have not heard back yet.  If anyone here can tackle it, that would be wonderful. 

Pages: [1]
  • CiviCRM Community Forums (archive) »
  • Old sections (read-only, deprecated) »
  • Developer Discussion (Moderator: Donald Lobo) »
  • Automatically (or automagically) create household records; the 3.0 version

This forum was archived on 2017-11-26.