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
SFDC-SDSFDC-SD 

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

 

aerdeaerde

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">

MMNMMN

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

 

 

 

 

SFDC-SDSFDC-SD

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.