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) »
  • Adding other phone numbers to default export
Pages: [1]

Author Topic: Adding other phone numbers to default export  (Read 1468 times)

lcdweb

  • Forum Godess / God
  • I live on this forum
  • *****
  • Posts: 1620
  • Karma: 116
    • www.lcdservices.biz
  • CiviCRM version: many versions...
  • CMS version: Joomla/Drupal
  • MySQL version: 5.1+
  • PHP version: 5.2+
Adding other phone numbers to default export
June 28, 2008, 08:21:20 am
I'd like to add the other phone types to the default "primary" export. Currently it only exports the primary (first) phone number listed. I'm trying to trace this, but don't see where the "primary" value is extracted from the full list.

Contact/BAO/Export.php pulls the list of exportable fields (when primary export is selected) from Contact/BAO/Contact.php, exportableFields function. It appears that function pulls the list of location fields from CRM_Core_DAO_Phone::export(). That function seems to just cycle through the phone values and build an array.

But I don't see where those multiple phone values are cycled through to only include the primary phone value in the final export.
support CiviCRM through 'make it happen' initiatives!
http://civicrm.org/mih

Kurund Jalmi

  • Administrator
  • I’m (like) Lobo ;)
  • *****
  • Posts: 4169
  • Karma: 128
    • CiviCRM
  • CiviCRM version: 4.x, future
  • CMS version: Drupal 7, Joomla 3.x
  • MySQL version: 5.5.x
  • PHP version: 5.4.x
Re: Adding other phone numbers to default export
June 30, 2008, 02:29:58 am
Brian,

You might want to check http://issues.civicrm.org/jira/browse/CRM-3185

kurund
Found this reply helpful? Support CiviCRM

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: Adding other phone numbers to default export
June 30, 2008, 02:12:06 pm
not sure if this helps but I recall the work around for us involved specifying other phone types in the export mapping other than 'primary' - http://forum.civicrm.org/index.php/topic,3567.0.html
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

lcdweb

  • Forum Godess / God
  • I live on this forum
  • *****
  • Posts: 1620
  • Karma: 116
    • www.lcdservices.biz
  • CiviCRM version: many versions...
  • CMS version: Joomla/Drupal
  • MySQL version: 5.1+
  • PHP version: 5.2+
Re: Adding other phone numbers to default export
June 30, 2008, 02:26:23 pm
There really were two things going on --

I had wanted to include all the primary phone numbers in the default export (as opposed to the "select fields to export" custom export option). I actually ran across your forum discussion on the confusion caused by the "primary" phone field, and understand that there's no such thing as a set of primary numbers, but rather a single number that is flagged as primary.

Anyway, I'm fine because one of my address types contains all the numbers I needed, and I decided to just create a saved export mapping rather than hack the "Primary export" script. Some of my users need their hand held, and I was looking to just include everything they need in the primary export rather than create the custom export map, but they can deal with the custom mapping.

thx-
Brian
support CiviCRM through 'make it happen' initiatives!
http://civicrm.org/mih

Pages: [1]
  • CiviCRM Community Forums (archive) »
  • Old sections (read-only, deprecated) »
  • Support »
  • Using CiviCRM »
  • Using Core CiviCRM Functions (Moderator: Yashodha Chaku) »
  • Adding other phone numbers to default export

This forum was archived on 2017-11-26.