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 CiviEvent (Moderator: Yashodha Chaku) »
  • Participant Export - include custom fields
Pages: [1]

Author Topic: Participant Export - include custom fields  (Read 2023 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+
Participant Export - include custom fields
November 12, 2007, 10:11:04 am
The event participant export process doesn't let me include custom fields. Can I easily hack them into the export code? I really just need one field. I'm looking at CRM/Event/DAO/Participant.php. How would I add that field to the export procedure?
-Brian
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: Participant Export - include custom fields
November 13, 2007, 12:37:32 am
Participant Export supports custom data of type "Participant". So only those fields will be exported. For contact related custom data you need to use Contact Export.

HTH

kurund
Found this reply helpful? Support CiviCRM

sonicthoughts

  • Ask me questions
  • ****
  • Posts: 498
  • Karma: 10
Re: Participant Export - include custom fields
May 18, 2008, 03:01:04 pm
sounds like this is coming in 2.1, but where would i modify the export logic to include additional fields from contacts in the participant export?

thanks,

s.

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: Participant Export - include custom fields
May 18, 2008, 03:06:10 pm

CRM/Event/Form/Task/Export.php, line 95. Add the additional properties you need exported to returnProperties and hopefully it will work

Please update the topic if it worked / other hacks u had to do to make it work :)

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

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: Participant Export - include custom fields
May 20, 2008, 03:38:50 pm
This is how I do this --
Edit: CRM/Event/BAO/Query.php

Add the following line after line 380 (in the 2.0 version of this file):

Code: [Select]
$properties['custom_#'] = 1;
Where # = the id for the custom field. Code in that area would look like this:

Code: [Select]
                 }
            }
$properties['custom_1'] = 1;
        }

        return $properties;
    }

The equivalent file can be edited to include custom fields in the default CiviMember and CiviContribute export. As I recall, the export code for the contact search is structured differently. Though you have the flexibility to create a custom export in that interface, so it's not really an issue.

-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 CiviEvent (Moderator: Yashodha Chaku) »
  • Participant Export - include custom fields

This forum was archived on 2017-11-26.