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 Core CiviCRM Functions (Moderator: Yashodha Chaku) »
  • 3rd Tier Org Relationships in Civi
Pages: [1]

Author Topic: 3rd Tier Org Relationships in Civi  (Read 569 times)

Hardwick

  • I post frequently
  • ***
  • Posts: 124
  • Karma: 1
  • CiviCRM version: 4.0.5
3rd Tier Org Relationships in Civi
June 02, 2014, 12:21:37 pm
hello, just curious if anyone else has attempted to set up a *third tier* relationship within organizations in civi, either manually or on import. For example, Org A is parent company, Org B is subsidiary with relationship created between the two as such. Individual A works for the subsidiary, Org B. Clear enough to set up separate relationships for each (employee of Org B AND Org A; etc>) but...what abouyt establishing an automatic relationship with Org A parent company if Indiv A works for Org B subsidiary. This doesn't seem to occur automatically. Any thoughts on how to establish such a automatic relationship ? Since, if Org B is by def subsidary of Org A, then by working at Subsidiary Location (Org B) indiv is therefore employed by Org A (parent). Would really welcome thoughts on it. thanks! H

Hardwick

  • I post frequently
  • ***
  • Posts: 124
  • Karma: 1
  • CiviCRM version: 4.0.5
Re: 3rd Tier Org Relationships in Civi
June 03, 2014, 07:22:52 pm
for example, we could create two distinct relationships, aka Employee at Work Location 1, as well as "Employee Of"  Company (Parent). But if individual contact works at a Work Location 1 belonging to Employer, in other words reflected by "Employee At" work location, then shouldn't the relationship to the parent company be automatically defined as employee of parent (without setting up that relationship)? this seems correct from a relational perspective.  H

Eileen

  • Forum Godess / God
  • I’m (like) Lobo ;)
  • *****
  • Posts: 4195
  • Karma: 218
    • Fuzion
Re: 3rd Tier Org Relationships in Civi
June 04, 2014, 03:15:40 am
We've done a few things in that direction - mostly around permissions & some non-generic code.

You would need to write custom code - using a post hook http://book.civicrm.org/developer/current/techniques/hooks/

AN alternative approach is to extend advanced search so you can search one-removed relationships from there.

But neither of these are available out-of the-box :-(
Make today the day you step up to support CiviCRM and all the amazing organisations that are using it to improve our world - http://civicrm.org/contribute

jaapjansma

  • I post frequently
  • ***
  • Posts: 247
  • Karma: 9
    • CiviCoop
  • CiviCRM version: 4.4.2
  • CMS version: Drupal 7
  • MySQL version: 5
  • PHP version: 5.4
Re: 3rd Tier Org Relationships in Civi
June 04, 2014, 06:02:20 am
I am working at such a thing at the moment. It is for a political party in the Netherlands where member have a relationship with local branches and the local branches have a realtionship with region branches and the region with the national party.

I have created an 'automated relationship extension' which creates a relationship with the local party based and the primary address. Every local branch has a list with cities which they are responible for and this list is the base for the matching.
Developer at Edeveloper / CiviCoop

Hardwick

  • I post frequently
  • ***
  • Posts: 124
  • Karma: 1
  • CiviCRM version: 4.0.5
Re: 3rd Tier Org Relationships in Civi
June 04, 2014, 11:32:27 am
Yes that is exactly same. We will try coding hook as per Eileen's suggestion. H

Hardwick

  • I post frequently
  • ***
  • Posts: 124
  • Karma: 1
  • CiviCRM version: 4.0.5
Re: 3rd Tier Org Relationships in Civi
June 04, 2014, 08:30:49 pm
thanks Eileen!!

Pages: [1]
  • CiviCRM Community Forums (archive) »
  • Old sections (read-only, deprecated) »
  • Support »
  • Using CiviCRM »
  • Using Core CiviCRM Functions (Moderator: Yashodha Chaku) »
  • 3rd Tier Org Relationships in Civi

This forum was archived on 2017-11-26.