Answers.Body: <p>Yes, making use of the api you can change more or less any data. Test it by accessing the api explorer under &lt;your_installation&gt;/civicrm/api. </p>
  
  <ol>
  <li>First check getting emails in question. </li>
  <li>Then try out setting parameters like you want. </li>
  <li>Combine the calls to either a php script or use api chaining in the api explorer.</li>
  </ol>
  
  <p>Keep in mind that get operations are limited to 25 results by default and that update operations may harm your data – even in the api explorer.</p>
  
  <p>If you have questions consider <a href="https://wiki.civicrm.org/confluence/display/CRMDOC/Using+the+API" rel="nofollow noreferrer" title="Using the API docs">Using the API</a> or ask here.</p>
  
Answers.ContentLicense: CC BY-SA 3.0
Answers.CreationDate: 2016-11-09T07:54:42.620Z
Answers.LastActivityDate: 2016-11-09T07:54:42.620Z
Answers.UserDisplayName: nielo
Body: <p>I've recently imported about 10,000 records into our database, many of them adding an additional work email address to our existing contacts whose home email address we used to contact.</p>
  
  <p>When the new work addresses were imported, it seems that many/most contacts now have their new work email as their primary.</p>
  
  <p>Is there any way to change the users' primary email to their home one, en masse?</p>
  
Tags: <contacts>
Title: Mass change of primary email address
ThreadText: # Mass change of primary email address
  
  (Asked by: username_0 on 2016-11-08)
  
  I've recently imported about 10,000 records into our database, many of them adding an additional work email address to our existing contacts whose home email address we used to contact.
  
  When the new work addresses were imported, it seems that many/most contacts now have their new work email as their primary.
  
  Is there any way to change the users' primary email to their home one, en masse?
  
  **Tags:** contacts
  
  
  ---
  
  ## 1 answers
  
  ### Answer by username_1 on 2016-11-09. Score: 1
  
  Yes, making use of the api you can change more or less any data. Test it by accessing the api explorer under /civicrm/api.
  
  1. First check getting emails in question.
  2. Then try out setting parameters like you want.
  3. Combine the calls to either a php script or use api chaining in the api explorer.
  
  Keep in mind that get operations are limited to 25 results by default and that update operations may harm your data – even in the api explorer.
  
  If you have questions consider [Using the API](https://wiki.civicrm.org/confluence/display/CRMDOC/Using+the+API "Using the API docs") or ask here.
  
  
  ---
  
  