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 »
  • Post-installation Setup and Configuration (Moderator: Dave Greenberg) »
  • select by number of relationships
Pages: [1]

Author Topic: select by number of relationships  (Read 489 times)

vantuykom

  • I post occasionally
  • **
  • Posts: 49
  • Karma: 0
  • CiviCRM version: 4
  • CMS version: drupal
  • MySQL version: 5
  • PHP version: 5.3
select by number of relationships
July 08, 2014, 04:50:18 am
Hi,

I need a way to get a directory listing from selecting contacts by the number of certain relationships they have.

this is what I mean:
"contact A" has 20 relationships of "type 1", And "contact B" + "contact C" have 50 and 55 relationships of "type 1". What I want to see is only contact B + contact C ordered by the number of relationships

Anyone knows how to do this?

regards

JonGold

  • Ask me questions
  • ****
  • Posts: 638
  • Karma: 81
    • Palante Technology
  • CiviCRM version: 4.1 to the latest
  • CMS version: Drupal 6-7, Wordpress 4.0+
  • PHP version: PHP 5.3-5.5
Re: select by number of relationships
July 08, 2014, 07:22:36 am
This would have to be a custom report or a custom search.
Sign up to StackExchange and get free expert CiviCRM advice: https://civicrm.org/blogs/colemanw/get-exclusive-access-free-expert-help

vantuykom

  • I post occasionally
  • **
  • Posts: 49
  • Karma: 0
  • CiviCRM version: 4
  • CMS version: drupal
  • MySQL version: 5
  • PHP version: 5.3
Re: select by number of relationships
July 08, 2014, 08:07:21 am
and how do I do that? I have tried to make a search, but there is nowhere I can select the number of reletionships...

JohnFF

  • I post frequently
  • ***
  • Posts: 235
  • Karma: 6
  • CiviCRM version: 4.4.13
  • CMS version: Drupal 7.28
  • MySQL version: 5.5.31-1
  • PHP version: 5.3.27
Re: select by number of relationships
July 08, 2014, 12:17:27 pm
As part of the custom search you can allow for parameters. Are you a coder? If not this is best left to a consultant
...
If you like empowering charities in a free and open way, then you're going to love Civi.

Email Amender: https://civicrm.org/extensions/email-amender
UK Phone Validator: https://civicrm.org/extensions/uk-phone-number-validator
http://civifirst.com
https://twitter.com/civifirst

vantuykom

  • I post occasionally
  • **
  • Posts: 49
  • Karma: 0
  • CiviCRM version: 4
  • CMS version: drupal
  • MySQL version: 5
  • PHP version: 5.3
Re: select by number of relationships
July 08, 2014, 11:22:13 pm
no, I'm not a coder
where do I have to set these parameters?

Pages: [1]
  • CiviCRM Community Forums (archive) »
  • Old sections (read-only, deprecated) »
  • Support »
  • Using CiviCRM »
  • Post-installation Setup and Configuration (Moderator: Dave Greenberg) »
  • select by number of relationships

This forum was archived on 2017-11-26.