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) »
  • Import Custom Data (used for Contact Sub Type) from XML
Pages: [1]

Author Topic: Import Custom Data (used for Contact Sub Type) from XML  (Read 1037 times)

Rajesh

  • I post occasionally
  • **
  • Posts: 78
  • Karma: 10
  • CiviCRM version: 4.2.x, 4.3.x, 4.4.x
  • CMS version: Drupal 7.xx, Wordpress 3.5.x - 3.6.x, Joomla 3.1
  • MySQL version: 5.5.20
  • PHP version: 5.3.10
Import Custom Data (used for Contact Sub Type) from XML
February 23, 2011, 08:15:13 am
Hi

Im importing custom data from a xml file, which i will be using for Contact subtype (of Organisation) called 'Charity'. In XML file i use <extends>Organization</extends>, how to mention in the XML file, so that the custom data set is used for 'Charity' ?

I tried the below lines in xml file

<extends>Organization</extends>
<extends_entity_column_id>9</extends_entity_column_id>
<extends_entity_column_value>Charity</extends_entity_column_value>

but after import, in the custom data set edit page, it is showing as Used for 'Organization' and the contact sub type is not selected.
(9 is the Id of the contact sub type - Charity)

Any idea how to do this?

Thanks

- Rajesh

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: Import Custom Data (used for Contact Sub Type) from XML
February 23, 2011, 09:04:36 am
hey rajesh:

you will need to extend import.php to get this to work. When i wrote that script, contact subtypes were not yet in core :)

If you do modify, please submit your patches back (as an issue with attached patch) so we can incorporate in core

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) »
  • Import Custom Data (used for Contact Sub Type) from XML

This forum was archived on 2017-11-26.