I want a custom button on a related list called 'Associated Facility' of Account to create Opportunity and this button should behave exactly like a standard 'New Opportunity' button.

I have created a Custom button as List button and used the below formula in the formula editor, but here the problem is the value in the Account lookup field for new Opportunity which is getting populated as constant value for every new opportunity:


Anyone please suggest a solution for this problem.

1 Answer 1


You can make URL dynamic for Account by a syntax similar to below:


You must log in to answer this question.

Not the answer you're looking for? Browse other questions tagged .