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 »
  • Post-installation Setup and Configuration (Moderator: Dave Greenberg) »
  • Export activities with contact details
Pages: [1]

Author Topic: Export activities with contact details  (Read 1500 times)

davej

  • Ask me questions
  • ****
  • Posts: 404
  • Karma: 21
Export activities with contact details
September 05, 2007, 04:57:23 am
Hi,

A client needs to be able to export lists of activities and contact details, e.g.
ContactNameA, (client details), ActivityA1, (activity details)
ContactNameA, (client details), ActivityA2, (activity details)
ContactNameB, (client details), ActivityB1, (activity details)

They can get the relevant contacts via advanced search on activity history but cannot export the results in the required format because activity fields are not available for export. Understandably, as they aren't related 1:1 to contacts.

A search through the forums & mailing list suggests that this isn't implemented & that doing so would add unwelcome additional complexity to the export code. I see that we now have CiviReport/BIRT but the installation process looks a bit much to expect the client to do. We don't run a J2EE server. So I'm thinking my best bet is to write some custom code to generate a .csv file, and hook it up to the actions drop-down on the search results page. Is this the most sensible approach? Any tips or gotchas, or places to look for similar code that I can adapt?

Thanks,

Dave J

speleo

  • Ask me questions
  • ****
  • Posts: 396
  • Karma: 28
  • CiviCRM version: 4.3.1
  • CMS version: J! 2.5,9
  • MySQL version: 5.1
  • PHP version: 5.3.24
Re: Export activities with contact details
September 05, 2007, 05:33:05 am
A bit of a step sideways but if they are exporting the data you could always just use a SQL query to pull the data straight out of the DB.

I've used MS Query to export data directly to Excel which works well. You need to enable port 3306 and be aware that if the schema changes you may need to modify your query.

davej

  • Ask me questions
  • ****
  • Posts: 404
  • Karma: 21
Re: Export activities with contact details
September 05, 2007, 06:47:24 am
Thanks speleo for the suggestion. I'm not keen though to open up port 3306 to the outside world just for one client to perform one query.

Dave J

Pages: [1]
  • CiviCRM Community Forums (archive) »
  • Old sections (read-only, deprecated) »
  • Support »
  • Using CiviCRM »
  • Post-installation Setup and Configuration (Moderator: Dave Greenberg) »
  • Export activities with contact details

This forum was archived on 2017-11-26.