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 Core CiviCRM Functions (Moderator: Yashodha Chaku) »
  • importing tags
Pages: [1]

Author Topic: importing tags  (Read 1612 times)

amajorov

  • Guest
importing tags
June 21, 2007, 01:54:44 pm
I've got to import a heap of tags and if there's any way to avoid entering them manually I'd sure like to know about it.

Thanks

Dave Greenberg

  • Administrator
  • I’m (like) Lobo ;)
  • *****
  • Posts: 5760
  • Karma: 226
    • My CiviCRM Blog
Re: importing tags
June 21, 2007, 02:28:01 pm
If you mean importing the Tag values that you can use to assign to contacts - there's no user interface import. However, they're stored in a simple table so you could probably use a SQL query to do it (civicrm_tag). Make sure and assign the correct domain_id value (1 b default - unless you've got multiple domains).
Protect your investment in CiviCRM by  becoming a Member!

amajorov

  • Guest
Re: importing tags
June 21, 2007, 03:33:40 pm
Thanks Dave. No issue with the civicrm_entity_tag table? It's got data in it but it's not clear to what from the ERD.

Dave Greenberg

  • Administrator
  • I’m (like) Lobo ;)
  • *****
  • Posts: 5760
  • Karma: 226
    • My CiviCRM Blog
Re: importing tags
June 21, 2007, 05:10:05 pm
The civicrm_entity_tag table joins (assigns) tags to contacts or other "entities" (altho only contacts can be tagged in the UI for now). If you're adding rows to civicrm_tag, that won't affect existing data in civicrm_entity_tag. If you're deleting/replacing tags, then you'll want to / need to delete existing assigned tags (delete from civicrm_entity_tag) - else you'll get foreign key errors.
Protect your investment in CiviCRM by  becoming a Member!

amajorov

  • Guest
Re: importing tags
June 21, 2007, 05:19:42 pm
Got it. Thanks.

Pages: [1]
  • CiviCRM Community Forums (archive) »
  • Old sections (read-only, deprecated) »
  • Support »
  • Using CiviCRM »
  • Using Core CiviCRM Functions (Moderator: Yashodha Chaku) »
  • importing tags

This forum was archived on 2017-11-26.