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) »
  • Discussion (deprecated) »
  • Feature Requests and Suggestions (Moderator: Dave Greenberg) »
  • When importing individuals could I have a column for Tags???
Pages: [1]

Author Topic: When importing individuals could I have a column for Tags???  (Read 2772 times)

yurtboy

  • Guest
When importing individuals could I have a column for Tags???
July 12, 2007, 08:53:07 am
For example I am exporting an number of contacts who have several tags ea from another program.
If would be nice if I could create columns like Tag 1 Tag 2 Tag 3 so when I import it CiviCRM Import would give me an option in the pulldown menu to match the Column to field Tag.
Right now I can associate a total import to a tag but that would really make this a tough import.
Al

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: When importing individuals could I have a column for Tags???
July 12, 2007, 09:02:35 am

You'll have to probably do this post-import at a later stage using API calls and/or some custom code. If you do write some custom code please post back and share with the group

There are no new import features planned for v2.0. We'd like to restructure import in v2.x but are more inclined to simplify it rather than make it more complex. The current import code is a bit too complex to make it maintanable nicely in the long run

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

yurtboy

  • Guest
Re: When importing individuals could I have a column for Tags???
July 12, 2007, 09:46:47 am
What I tried so far what to create a custom multi select field called Person Intrests.
Then that would have a list of items that are associated with the import.
For example the import files looks like this
first, last, address, Personint, PersonInterests1, PersonInterests2
Test, Import, Test Address, Blogger, Budget, Housing
---end
Now the thing is PersonInterests1 and PersonInterests2 both are Interests to be chosen in the MultiSelect Custom Field called Person Interests.
But during the import, instead of it multiplying the selection, the last one over does the first.

Al

Dave Greenberg

  • Administrator
  • I’m (like) Lobo ;)
  • *****
  • Posts: 5760
  • Karma: 226
    • My CiviCRM Blog
Re: When importing individuals could I have a column for Tags???
July 12, 2007, 05:37:50 pm
The only way this "might" work is if your import file looks more like this:

Code: [Select]

first, last, address, Personint
Test, Import, Test Address, "Blogger, Budget, Housing"


Since Person Interests is a single field.
However, I'm not sure if import supports multiple values like this.
Protect your investment in CiviCRM by  becoming a Member!

alfred_nutile

  • Ask me questions
  • ****
  • Posts: 464
  • Karma: 14
    • River Valley Tech Collective
Re: When importing individuals could I have a column for Tags???
December 01, 2009, 02:48:41 am
Just wondering (and I am searching more) what is the best practice to import multi-select fields for example a custom field.
Thanks

Dave Greenberg

  • Administrator
  • I’m (like) Lobo ;)
  • *****
  • Posts: 5760
  • Karma: 226
    • My CiviCRM Blog
Re: When importing individuals could I have a column for Tags???
December 01, 2009, 09:12:22 am
You could use Peter D's favorite trick of exporting a few contacts that have multi-select fields w/ multiple values and check the export format. Doesn't look like we've documented the right way to do this so would be great if you could add a tip to the import doc once you get it working:

http://wiki.civicrm.org/confluence/display/CRMDOC/1.+Upload+Data
Protect your investment in CiviCRM by  becoming a Member!

Pages: [1]
  • CiviCRM Community Forums (archive) »
  • Old sections (read-only, deprecated) »
  • Discussion (deprecated) »
  • Feature Requests and Suggestions (Moderator: Dave Greenberg) »
  • When importing individuals could I have a column for Tags???

This forum was archived on 2017-11-26.