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) »
  • Developer Discussion (Moderator: Donald Lobo) »
  • Generate XML of members
Pages: [1]

Author Topic: Generate XML of members  (Read 904 times)

emilyf

  • Ask me questions
  • ****
  • Posts: 696
  • Karma: 54
  • CiviCRM version: 2.x - 4.x
  • CMS version: Drupal 5, 6, 7
Generate XML of members
August 03, 2012, 08:22:21 am
Hi All,

I'm on Civi 3.4 and Drupal 6.

I need to integrate with the All Academic software for one of my organizations. This means I need to generate an XML of civi users/members with a bunch of fields (contact id, member type, member dates, address, phone, etc). In addition, whenever a membership record is updated it needs to trigger that push (either immediately or once a day) then send out updated xml for that particular contact.

Does anyone have suggestions on an easy way to do this? Is there an example I can use? Just looking for some pointers on getting this off this ground.

Thanks so much,
Emily

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: Generate XML of members
August 03, 2012, 12:02:55 pm

You can do this by implementing a post hook on the membership object

to generate xml, check the simplexml extension of php

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) »
  • Developer Discussion (Moderator: Donald Lobo) »
  • Generate XML of members

This forum was archived on 2017-11-26.