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) »
  • Switching primary location from home to work
Pages: [1]

Author Topic: Switching primary location from home to work  (Read 941 times)

wftl

  • I’m new here
  • *
  • Posts: 28
  • Karma: 4
    • Writer and Free Thinker at Large
Switching primary location from home to work
May 14, 2008, 06:12:51 pm
Hello everyone,

We added several hundred contacts before noticing that the primary location for those contacts should have been work instead of home. Is there an easy way to change primary location from home to work? If so, how?

Thanks,

-- Marcel

Yashodha Chaku

  • Forum Godess / God
  • Ask me questions
  • *****
  • Posts: 755
  • Karma: 57
    • CiviCRM
Re: Switching primary location from home to work
May 15, 2008, 11:18:16 pm
IMO,there is no provision through UI.
However, you you can use the MySQL to achieve the same :

UPDATE  `civicrm_address`
SET `location_type_id` = 2
WHERE `location_type_id` = 1
AND `is_primary` = 1

And the same query should be applied for civicrm_email, civicrm_im, civicrm_phone.

HTH
-Yashodha
Found this reply helpful? Contribute NOW and help us improve CiviCRM with the Make it Happen! initiative.

Pages: [1]
  • CiviCRM Community Forums (archive) »
  • Old sections (read-only, deprecated) »
  • Support »
  • Using CiviCRM »
  • Using Core CiviCRM Functions (Moderator: Yashodha Chaku) »
  • Switching primary location from home to work

This forum was archived on 2017-11-26.