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) »
  • quick question on relationships
Pages: [1]

Author Topic: quick question on relationships  (Read 442 times)

kennedy

  • I post occasionally
  • **
  • Posts: 119
  • Karma: 5
  • CiviCRM version: 4.5.5
  • CMS version: Drupal
  • PHP version: 5.3.10
quick question on relationships
April 19, 2013, 07:10:05 am
How can i search and export all organizations in my database with more than one contact attached i.e organizations that have more than one employee and export the organization with all its employees.


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: quick question on relationships
April 19, 2013, 04:14:50 pm
try something like using Adv Search - in Relationships, setting relationship to 'employer of', then selecting the 'show results as' = RElationships (top right)
you might need to try a couple of ways around but i think you will get what you want
and then of course include current employer (or relationship  = employee of + Org Name) in your export
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

kennedy

  • I post occasionally
  • **
  • Posts: 119
  • Karma: 5
  • CiviCRM version: 4.5.5
  • CMS version: Drupal
  • PHP version: 5.3.10
Re: quick question on relationships
April 20, 2013, 05:59:49 am
Hi Pete, thank you for willing to help.
I only want to export organizations with more than one employee and ignore all other organizations with only one employee.

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: quick question on relationships
April 20, 2013, 06:59:03 am

2 options:

1. Do the export of all orgs and then write a script outside of civi to delete orgs with only one employee

2. Write a custom search that implements your specific requirements

either option requires some amount of coding

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

Pages: [1]
  • CiviCRM Community Forums (archive) »
  • Old sections (read-only, deprecated) »
  • Support »
  • Using CiviCRM »
  • Using Core CiviCRM Functions (Moderator: Yashodha Chaku) »
  • quick question on relationships

This forum was archived on 2017-11-26.