function readOnly(count){ }
Starting November 20, the site will be set to read-only. On December 4, 2023,
forum discussions will move to the Trailblazer Community.
+ Start a Discussion
apexsutherlandapexsutherland 

S-control to make Account Merge wizard return to beginning upon completion

This post is to provide a more thorough description of the solution that I posted as a comment to this idea on the IdeaExchange:

 

http://ideas.salesforce.com/article/show/10093781/Account_Contact_Leads_Merge

 

So, step 1 is to create an HTML S-control containing the following code:

 

<script language="JavaScript">function redirect(){parent.parent.frames.location.replace('/merge/accmergewizard.jsp?retURL=%2Fmerge%2Faccmergewizard.jsp');}redirect();</script>

 

Next create a Custom Tab, and have it display the S-control that you created above.

 

Display the tab in the appropriate applications (and make it visible and "Default On" for the appropriate profiles), and now you have an Account Merge wizard that will always return to the beginning when you finish the merge process!

 

The magic in this S-control is setting the "retURL" parameter to the first page of the Account Merge wizard, so when the wizard finishes its process it reads that parameter and goes to whatever URL is specified. This paramter is normally set to the URL of the Account, but it can be overriden as I've done above.