Activity Forums Salesforce® Discussions Auto Populate page of Opportunity Record on Custom Button

  • Himanshu

    Member
    April 14, 2016 at 7:59 am

    Hi Ajit,

    Create a a javascript button and use this link.

    window.open("/006/e?opp11=Prospecting");

    the above url is for creating a new Opportunity - http://ap2.salesforce.com/006/e?retURL=%2F006%2Fo so copy your org url by clicking on new opportunity in your org and make the url same as mine here opp11 is field id of stage name in opportunity if you want more records to be populated add the other fields id by puting '&' in the url like this

    window.open("/006/e?opp11=Prospecting&opp9=123"); here opp9 is Amount to get the field id's open the below link :

    use links to get field Id's : http://phollaio.tumblr.com/post/22058016777/how-to-obtain-a-field-id

  • Parul

    Member
    September 17, 2018 at 11:58 am

    Hello,

    For this, you can create a visualforce page and use it on the custom button on Opportunity, and in the controller of that VF page, you can get all the values you want on the new page on click of button.

    Thanks.

     

Log In to reply.

Popular Salesforce Blogs

Popular Salesforce Videos