I have two Visualforce Pages
, one for Account
and another for Opportunity
.
On the Account
page there is a button named New Opportunity
. I want to pre-populate some data from Account
fields to the Opportunity
page.
What I have done so far is I have created a button with the following url:
/apex/Oppurtunitynew?retURL=%2Fapex%2Faccountview%3Fid%3D{!Account.Id}%26sfdc.override%3D1%26core.apexpages.devmode.url%3D1&OIP87654543={!account.name}accid={!Account.Id}&sfdc.override=1
When I click on this button it redirects to the Opportunity
page (correct), but does not populate the fields (incorrect).
I have checked the redirecting URL which is
What I found it is not taking account id
after redirecting.