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) »
  • exporting multiple custom relationships
Pages: [1]

Author Topic: exporting multiple custom relationships  (Read 643 times)

daybell

  • I’m new here
  • *
  • Posts: 21
  • Karma: 0
    • Vermont Progressive Party
  • CiviCRM version: 4.1.5
  • CMS version: Drupal 6.26
  • MySQL version: 5.5.22
exporting multiple custom relationships
October 29, 2012, 09:59:55 am
We use custom relationships to track voter preferences (individual X is a "Supporter of" campaign Y), and then export voter lists for canvassing/sidechecking.

When exporting individuals, all tags and all non-smart groups are exported comma delim, but where there are multiple records for a custom relationship type (like "supporter of") only one value is returned. Unhelpfully, it appears to be the oldest value.

Is there a way to export all relationships similar to tags?

Or where there are multiple values, export the most recent (highest org ID)?

Thanks,
morgan

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: exporting multiple custom relationships
October 29, 2012, 04:43:48 pm

not in the current or past releases :(

This will need to be a code change in the core query code. I suspect the starting point might be:

CRM/Contact/BAO/Query.php, function relationship

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) »
  • exporting multiple custom relationships

This forum was archived on 2017-11-26.