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) »
  • Search for organization primary contact
Pages: [1]

Author Topic: Search for organization primary contact  (Read 545 times)

groston

  • I post occasionally
  • **
  • Posts: 61
  • Karma: 0
  • CiviCRM version: 4.5.5
  • CMS version: Drupal 7.34
  • MySQL version: 5.5.34
  • PHP version: 5.3.27
Search for organization primary contact
June 11, 2014, 07:26:41 pm
I would like to create a group (either static or dynamic) which consists of the Individual Contacts who are 'primary contact' for Organizations that have active memberships. By primary contact, I mean that person whose email address is the same as the Main Email for the Organization.

With some poking around at the database, I am certain that I could figure out the SQL query. However, is it possible to use one of the existing search tools to accomplish this? If so, how would I do this?

Thank you.

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: Search for organization primary contact
June 11, 2014, 07:28:06 pm
nope

we would normally use a Relationship to denote who is the Primary Contact for an org - then you can use that to make your group
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

groston

  • I post occasionally
  • **
  • Posts: 61
  • Karma: 0
  • CiviCRM version: 4.5.5
  • CMS version: Drupal 7.34
  • MySQL version: 5.5.34
  • PHP version: 5.3.27
Re: Search for organization primary contact
June 11, 2014, 08:24:47 pm
petendz,

Thank you. Could you please be a bit more explicit? I did some searching and did not find any useful references to 'Primary Contact'. This https://civicrm.org/blogs/nasact/use-cases-primarycontactid suggests that there is a field for the Primary ID, but I cannot find it in the Organization Contact record.

Your comment seems to suggest something in the relationship itself, but again, I could not find a box to indictae primary. Does 'primary' mean checking the box to allow the Individual to view/update the information for the Organization?

Thx.

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: Search for organization primary contact
June 11, 2014, 08:55:52 pm
hi - sure

Create yourself a new Relationship via civicrm/admin/reltype?reset=1

then use that to link the person you want, with their organisation

then you can build a smart group of such people based on their relationship

there isn't a built in 'this is the primary contact for an organisation' in civi

nasact's blog was about the need for such a field

does that help?
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

groston

  • I post occasionally
  • **
  • Posts: 61
  • Karma: 0
  • CiviCRM version: 4.5.5
  • CMS version: Drupal 7.34
  • MySQL version: 5.5.34
  • PHP version: 5.3.27
Re: Search for organization primary contact
June 12, 2014, 12:29:45 pm
Understood - thx!

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: Search for organization primary contact
June 13, 2014, 05:02:01 am
That primary ID you are referring too is the primary contact of a household, not of an organisation.
Developer at Edeveloper / CiviCoop

Pages: [1]
  • CiviCRM Community Forums (archive) »
  • Old sections (read-only, deprecated) »
  • Support »
  • Using CiviCRM »
  • Using Core CiviCRM Functions (Moderator: Yashodha Chaku) »
  • Search for organization primary contact

This forum was archived on 2017-11-26.