You need to sign in to do that
Don't have an account?

Help needed on creating Dynamic URL
Is there any way I can pass Account Ids in the below link for merging account using APEX?
This is the link for Account Merging two accounts.
p = new pagereference('https://cs8.salesforce.com/merge/accmergewizard.jsp?goNext=+Next+&cid=001L0000005T4bK&cid=001L0000005T4bo') How can I pass two cids dynamically in the above URL? When I tried it using two variables to pass I got this result https://cs8.salesforce.com/merge/accmergewizard.jsp?cid=001L0000005T4bK&goNext=+Next+
Appreciate any help on this.
How can I
Maybe you can use JavaScript to prefill the the search field ?
<input id="srch" maxlength="80" name="srch" size="20" title="Find Accounts" type="text">
Hi
This way :
Next='myDynamicUrl'
p = new pagereference('https://cs8.salesforce.com/merge/accmergewizard.jsp?goNext='+Next+'&cid=001L0000
See the differences in red.
You should have https://cs8.salesforce.com/merge/accmergewizard.jsp?goNext=myDynamicUrl&cid=001L0000
My problem is dynamically passing whole URL with multiple cids(Account Ids) for custom Account merge.
Page control is getting transferred to account merge page, but "goNext" is getting display and the end of URL even though I have it in the middle of URL as I have show in my initial post.