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 »
  • Using Import (Moderator: Yashodha Chaku) »
  • How do I import multiple values into a custom data field
Pages: [1]

Author Topic: How do I import multiple values into a custom data field  (Read 2563 times)

pkeogan

  • I post frequently
  • ***
  • Posts: 130
  • Karma: 4
    • BackOffice Thinking
How do I import multiple values into a custom data field
February 26, 2010, 02:04:03 pm
I would like to import multiple values into a custom data field  (checkbox list).  I've tried using the pipe delimiter |, but that isn't working for me.  Does CiviCRM support this type of import?  I have created an example in the Demo site.  I'm trying to import into the "Import Test" data group into the field "AA".  I've attached the import file. 

The import utility completes successfully, but there isn't anything in the data field.

I have successsfully done this through the database, but it would be a lot faster to do it through the import.

petednz

  • Forum Godess / God
  • I’m (like) Lobo ;)
  • *****
  • Posts: 4899
  • Karma: 193
    • Fuzion
  • CiviCRM version: 3.x - 4.x
  • CMS version: Drupal 6 and 7
Re: How do I import multiple values into a custom data field
February 26, 2010, 06:51:51 pm
My advice is always to work backwards. Enter some data at the backend in to your fields/options - then export it - then you see what the database is expecting from the import - hope that helps.
Sign up to StackExchange and get free expert advice: https://civicrm.org/blogs/colemanw/get-exclusive-access-free-expert-help

pete davis : www.fuzion.co.nz : connect + campaign + communicate

pkeogan

  • I post frequently
  • ***
  • Posts: 130
  • Karma: 4
    • BackOffice Thinking
Re: How do I import multiple values into a custom data field
February 27, 2010, 11:41:07 am
Thanks, that worked it was just a , 

Now I feel stupid....

mjawadsheikh

  • I’m new here
  • *
  • Posts: 8
  • Karma: 0
  • CiviCRM version: 3.4.5
  • CMS version: Joomla 1.5
  • MySQL version: 5.0.92-community-log
  • PHP version: 5.2.17
Re: How do I import multiple values into a custom data field
August 15, 2011, 10:30:29 pm
Can you please tell me the whole procedure to do this?? I want to add the names of cities of my country to the city drop down menu. As the cities are 100+, so entering the field one by one is not a practical thing. So, how can I import the options as you have described here?

petednz

  • Forum Godess / God
  • I’m (like) Lobo ;)
  • *****
  • Posts: 4899
  • Karma: 193
    • Fuzion
  • CiviCRM version: 3.x - 4.x
  • CMS version: Drupal 6 and 7
Re: How do I import multiple values into a custom data field
August 16, 2011, 01:30:28 am
HI - I think you will need to search on how to import options to a value - this thread is about importing the data to a field that already has the options created - an sql import is the usual way to go - one route is to create a couple of options - look in the db - export a couple of rows from the table, then construct the extras based on that model and do the import. Good luck (i know this has been described in more detail somewhere on the forum a couple of years back)
Sign up to StackExchange and get free expert advice: https://civicrm.org/blogs/colemanw/get-exclusive-access-free-expert-help

pete davis : www.fuzion.co.nz : connect + campaign + communicate

CiviTeacher.com

  • I live on this forum
  • *****
  • Posts: 1282
  • Karma: 118
    • CiviTeacher
  • CiviCRM version: 3.4 - 4.5
  • CMS version: Drupal 6&7, Wordpress
  • MySQL version: 5.1 - 5.5
  • PHP version: 5.2 - 5.4
Re: How do I import multiple values into a custom data field
November 18, 2011, 10:53:24 am
I have found that the CONCATENATE function is useful if the data is given to you spread across multiple columns. 

   For the Multi-Select Fields above, Excel or OpenOffice CONCATENATE() function can be useful, and IF() statements can be used to make the commas between fields conditional like so: CONCATENATE(S2,T2,U2,V2,W2) where columns T and V are conditional commas with IF(NOT(ISBLANK(U2)),",","")

This way, a comma is only added between values if the values actually exist.
Try CiviTeacher: the online video tutorial CiviCRM learning library.

Pages: [1]
  • CiviCRM Community Forums (archive) »
  • Old sections (read-only, deprecated) »
  • Support »
  • Using CiviCRM »
  • Using Import (Moderator: Yashodha Chaku) »
  • How do I import multiple values into a custom data field

This forum was archived on 2017-11-26.