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
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