Answers.Body: <p>By testing Find &amp; Merge contacts at the <a href="https://civicrm.org/demo" rel="nofollow noreferrer">https://civicrm.org/demo</a> site, I was able to see that the URL will look like</p>
  
  <pre><code>                                   ⬇ 
  civicrm/contact/merge?reset=1&amp;cid=123&amp;oid=456&amp;action=update&amp;rgid=3&amp;limit=
                                             ⬆ 
  </code></pre>
  
  <p>Where <code>cid</code> is the retained contact ID, and <code>oid</code> is the old (merged and removed) contact ID. You should probably test this on your own site, since I suspect <code>rgid</code> may also be significant (probably a group id).</p>
  
  <p>If you ever want a sandbox to test things out harmlessly, head over to <a href="https://civicrm.org/demo" rel="nofollow noreferrer">https://civicrm.org/demo</a> - note there are two sections on that page, first some partner-provided, customised CiviCRM installs and below that (blue section) is a set of more stock demo sites you can use as well.</p>
  
Answers.ContentLicense: CC BY-SA 3.0
Answers.CreationDate: 2017-03-24T20:17:55.937Z
Answers.Text: chris, is the rgid because you limited your original 'find dupes' to a specific 'group'?
Answers.UserDisplayName: petednz - fuzion
Answers.ContentLicense: CC BY-SA 3.0
Answers.CreationDate: 2017-03-25T10:14:40.410Z
Answers.Text: I just clicked whatever on the demo site got me to a merge-contact screen fastest :) That's possible.
Answers.UserDisplayName: Chris Burgess
Answers.ContentLicense: CC BY-SA 3.0
Answers.CreationDate: 2017-03-24T18:37:52.523Z
Answers.LastActivityDate: 2017-03-24T18:37:52.523Z
Answers.UserDisplayName: Chris Burgess
Answers.Body: <p>Another way of accessing Merge is from any Search function (based on Contacts eg Find, Adv Search, Quick Search). Eg click in QuickSearch, hit Enter (gives you all Contacts), select any 2 Individuals, in Actions chose Merge, this gives you a url like this (but without the cool arrows Chris had)</p>
  
  <pre><code>civicrm/contact/merge?reset=1&amp;cid=2&amp;oid=3
  </code></pre>
  
  <p>As a further answer, if you have the paired IDs in an external spreadsheet, then use the CONCATENATE function to join together all the bits as a hyperlink, then you should be able to just click through to the merge url for each pair.</p>
  
Answers.ContentLicense: CC BY-SA 3.0
Answers.CreationDate: 2017-03-25T13:29:22.633Z
Answers.Text: thank you both for your help. In the first place I tried to compose a link to the search result screen. And I tried to make a search based on the two ID's. That focus made me overlook the URL of the mergescreen. This is an even better solution and matches exactly my needs. Thank you for helping me further!! Awesome.
Answers.UserDisplayName: ruud
Answers.ContentLicense: CC BY-SA 3.0
Answers.CreationDate: 2017-03-24T20:17:25.790Z
Answers.LastActivityDate: 2017-03-24T20:17:25.790Z
Answers.UserDisplayName: petednz - fuzion
Body: <p>I need an advice on a small problem. My database contains many duplicate Contact records, of which I have determined the contact id. I have a log list with pairs of contact id.s</p>
  
  <p>What I would like is merge the records using those contact id pairs.
  It is not easy to find the pair using the contact ids. I have not found a way yet to use the advance search so that I have a result screen containing the two records base on the ID.</p>
  
  <p>Is it possible to create a URL for each pair that directly leads me to either a search result screen in which I can select and merge them, OR go directly to the merge screen for the two records?</p>
  
  <p>If not, is there a way in which I can provide the people who do the merging with an easy method to process the list with id pairs?</p>
  
  <p>thanks in advance, Ruud</p>
  
Comments.ContentLicense: CC BY-SA 3.0
Comments.CreationDate: 2017-03-24T10:13:09.333Z
Comments.Text: do you really mean contact_id ? That means you have 2 contacts with single id (say id=1) ?
Comments.UserDisplayName: jitendra - fuzion
Comments.ContentLicense: CC BY-SA 3.0
Comments.CreationDate: 2017-03-24T11:28:59.877Z
Comments.Text: Yes, I have two contact records (with different contact_id), but describing the same person. I want to merge the two records, so that each person has only one contact record. I have a list of pairs of contact_ids of records that need to be merged. But it is not easy to do a search on contact_id = 1 OR contact_id = 88.
Comments.UserDisplayName: ruud
Tags: <contacts><search><duplicate-contacts>
Title: accessing merge screen through URL
ThreadText: # accessing merge screen through URL
  
  (Asked by: username_0 on 2017-03-24)
  
  I need an advice on a small problem. My database contains many duplicate Contact records, of which I have determined the contact id. I have a log list with pairs of contact id.s
  
  What I would like is merge the records using those contact id pairs.
  It is not easy to find the pair using the contact ids. I have not found a way yet to use the advance search so that I have a result screen containing the two records base on the ID.
  
  Is it possible to create a URL for each pair that directly leads me to either a search result screen in which I can select and merge them, OR go directly to the merge screen for the two records?
  
  If not, is there a way in which I can provide the people who do the merging with an easy method to process the list with id pairs?
  
  thanks in advance, Ruud
  
  **Tags:** contacts, search, duplicate-contacts
  
  > **Comments:**
  > **username_1**: do you really mean contact_id ? That means you have 2 contacts with single id (say id=1) ?  
  > **username_0**: Yes, I have two contact records (with different contact_id), but describing the same person. I want to merge the two records, so that each person has only one contact record. I have a list of pairs of contact_ids of records that need to be merged. But it is not easy to do a search on contact_id = 1 OR contact_id = 88.  
  
  ---
  
  ## 2 answers
  
  ### Answer by username_3 on 2017-03-24. Score: 3 | Accepted answer
  
  Another way of accessing Merge is from any Search function (based on Contacts eg Find, Adv Search, Quick Search). Eg click in QuickSearch, hit Enter (gives you all Contacts), select any 2 Individuals, in Actions chose Merge, this gives you a url like this (but without the cool arrows Chris had)
  civicrm/contact/merge?reset=1&cid=2&oid=3
  
  As a further answer, if you have the paired IDs in an external spreadsheet, then use the CONCATENATE function to join together all the bits as a hyperlink, then you should be able to just click through to the merge url for each pair.
  
  > **Comments:**
  > **username_0**: thank you both for your help. In the first place I tried to compose a link to the search result screen. And I tried to make a search based on the two ID's. That focus made me overlook the URL of the mergescreen. This is an even better solution and matches exactly my needs. Thank you for helping me further!! Awesome.  
  
  ---
  
  ### Answer by username_2 on 2017-03-24. Score: 2
  
  By testing Find & Merge contacts at the https://civicrm.org/demo site, I was able to see that the URL will look like
                                     ⬇ 
  civicrm/contact/merge?reset=1&cid=123&oid=456&action=update&rgid=3&limit=
                                             ⬆ 
  
  Where cid is the retained contact ID, and oid is the old (merged and removed) contact ID. You should probably test this on your own site, since I suspect rgid may also be significant (probably a group id).
  If you ever want a sandbox to test things out harmlessly, head over to https://civicrm.org/demo - note there are two sections on that page, first some partner-provided, customised CiviCRM installs and below that (blue section) is a set of more stock demo sites you can use as well.
  
  > **Comments:**
  > **username_3**: chris, is the rgid because you limited your original 'find dupes' to a specific 'group'?  
  > **username_2**: I just clicked whatever on the demo site got me to a merge-contact screen fastest :) That's possible.  
  
  ---
  
  