You need to sign in to do that
Don't have an account?
D srinivas 8734
onclick javascript button not showing in lightning?
apex class is calling from onclick javascript button its working fine ,but in lightning button is not showing ...
button code here invoicecreation is apex class & senddata, invoicepdf are class methods ,invoicecreation is api related
{!REQUIRESCRIPT("/soap/ajax/30.0/connection.js")}
{!REQUIRESCRIPT("/soap/ajax/30.0/apex.js")}
sforce.apex.execute("invoicecreation","senddata",{odr:"{!Order.Id}"});
sforce.apex.execute("invoicecreation","invoicepdf",{odr:"{!Order.Id}"});
alert("Invoice creation Request submitted");
button code here invoicecreation is apex class & senddata, invoicepdf are class methods ,invoicecreation is api related
{!REQUIRESCRIPT("/soap/ajax/30.0/connection.js")}
{!REQUIRESCRIPT("/soap/ajax/30.0/apex.js")}
sforce.apex.execute("invoicecreation","senddata",{odr:"{!Order.Id}"});
sforce.apex.execute("invoicecreation","invoicepdf",{odr:"{!Order.Id}"});
alert("Invoice creation Request submitted");
Javascript button are not available in lightning. You need to convert them and for this follow below URL.
https://help.salesforce.com/articleView?id=lcc_javascript_buttons_overview.htm&type=5 (https://help.salesforce.com/articleView?id=lcc_javascript_buttons_overview.htm&type=5)
Thanks
Hemant