+ Start a Discussion
Vijay sidaraddiVijay sidaraddi 

In standard Opprtunity page

Hi Team,

There is a standard opportunity page , which is having custom which can call a method, how to do it,( If Vf page was not there) .

Thanks
AnupPrakash_AlgoworksAnupPrakash_Algoworks
Hi @Vijay Sidaraddi

What are you trying to achieve? If you could elaborate a bit more may be I could be able to help.
Vijay sidaraddiVijay sidaraddi
Im asking if There is a standard opportunity page , which is having custom button by clicking the custom button which can call a apex method, how to do it,( If Vf page was not there) .
ManojjenaManojjena
Hi Vijay ,
You can call a class in onclick javascript type of custom buttom.Basically the method should  contain webservice and static  .
check below link which will help you .
https://developer.salesforce.com/docs/atlas.en-us.apexcode.meta/apexcode/apex_and_ajax.htm   
 
sforce.apex.execute("Your class Name", "Method Name", {here you can pass parameter if any });
Let me know if it helps !!
Thanks 
Manoj