Question

I'm stumped with this particular Feed import problem.

I've got a content type (node) that has an entity reference field that relates it to an number of CiviCRM organization contacts. When you manually create a node, the entity reference field auto-completes the field and if you look at it in the editing view, you see the name of the contact along with their CiviCRM unique contact id. It would look like the following:

Contact Name [cid:8]

In the regular view, you just see the Contact Name.

I figured I could use Drupal Feeds and Feeds Tamper and then create a CSV import but I can't seem to format the entity reference field correctly so that the data is accepted. I've tried setting it to "Organization Name" as well as "id" and "user_unique_id". I've fed it straight integers for id and the unique id and I've tried "Contact Name [cid:8]" as well as just the contact name or just the "[cid:8]" part and nothing seems to stick. The content is created but the entity reference field remains empty. I can of course manually enter the values but that defeats the point of the import.

Any ideas?

These are the pertinent parts of the site:

  • Drupal 7.x
  • CiviCRM 4.4.x
  • Feeds
  • Feeds Tamper
  • Entity
  • CiviCRM entities
  • Entity Reference
  • CiviCRM Contact Reference Field

Thanks, Andrew

No correct solution

Licensed under: CC-BY-SA with attribution
Not affiliated with drupal.stackexchange
scroll top