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
Hemanth BakthavatsaluHemanth Bakthavatsalu 

URL Hacking - Custom button on Opportunity

I have created a custom list button on Opportunity, which takes the user's country and other details from user record and auto populates on Opportunity creation.

If I use the same custom button on Opportunity related list on Accounts, the Account is not getting auto populated on the opportunity; whereas the standard "New Opportunity" button on Opportunity related list on Account record, auto populates the Account name on Opportunity.

How do I make the custom Opportunity creation button to auto populate the Account name on Opportunity creation (when we create the opportunity from Account)
@anilbathula@@anilbathula@
Hi Hemanth,

Try the below code in custom button  (opportunity list button) .Which displays on opportunity related list under account.

/006/e?opp4_lkid={!Account.Id}&retURL={!Account.Id}

Thanks
Anil.B