3

Button

{!REQUIRESCRIPT("/soap/ajax/30.0/connection.js")} {!REQUIRESCRIPT("/soap/ajax/30.0/apex.js")} sforce.apex.execute("LeadConversion","show",{}); 

Apex Class

global class LeadConversion { global static void show() { //Some Code Here } } 

I am trying like this and getting error faultcode:soapenv:client',faultstring':no operation is availbale for request, Please guide me here

0

1 Answer 1

4

You should mark method with webservice attribute like below

global class LeadConversion { webservice global static void show() { //Some Code Here } } 
1
  • Great! , it Worked. Thanks Commented Jul 30, 2019 at 13:16

You must log in to answer this question.

Start asking to get answers

Find the answer to your question by asking.

Ask question

Explore related questions

See similar questions with these tags.