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 relationships - then export those
Pages: [1]

Author Topic: Search for relationships - then export those  (Read 757 times)

allstarkids

  • Guest
Search for relationships - then export those
August 19, 2009, 12:41:00 pm
Hi

Not sure how to get this to work - I am sure I had it working in an older version of Civicrm but can't work out now how I did it.

We have networks in our database which are set up with relationships.

We'd like to be able to run a search to bring us up "Network co-ordinators" (relationship type) then when we export their data for mailing we would like to be able to give them a list of people in their network with their addresses... is it possible to create a search to do this and export this data?

Hope that makes sense!

Thanks

Chris

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: Search for relationships - then export those
August 19, 2009, 12:57:49 pm

Did u try an advanced search using relationship?

However i dont think that will meet your needs. I suspect u will need to write a custom search component for this:

http://wiki.civicrm.org/confluence/display/CRMDOC/Custom+Search+Components

if you do so, please publish your code so others can benefit

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

allstarkids

  • Guest
Re: Search for relationships - then export those
August 19, 2009, 01:07:33 pm
Search using relationship works to bring up the individuals with that specific relationship. However its then exporting those people that is a problem as you cannot export relationship and details of the relationship.

E.G Joe Bloggs runs Network 1 - there are 5 others in the networks. Joe Blogs needs a list of the 5 others in the Network and their contact details.

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: Search for relationships - then export those
August 19, 2009, 01:11:01 pm

You will need to write a custom search for this. Seems like it will be useful for other folks also

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) »
  • Search for relationships - then export those

This forum was archived on 2017-11-26.