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

Java script button( calls webservice method) convert into lighting quick action

Hello every one ,
We have a Javascript button which calls the web service method.  Below is the code 

if (!window.createxxAccountInProgress) {
window.createxxAccountInProgress = true;
var result = sforce.apex.execute("RelatedxxAccountActions","CreatexxxAccount", {relatedxxAccountId:" {!Related_xxx_Account__c.Id}"});
result = JSON.parse(result[0]);
window.createxxxAccountInProgress = false;
if (!result || !result.isSuccess) {
alert("An error occurred and your xxxx Account was not created. Please try again." +
result && result.errorMessage 
? '\r\n' + result.errorMessage
: '');
else {
alert("Create xxxx Account request was sent successfully.");
can anyone please suggest me how do i convert above Javascript button into lighting quick action.

Thank you,
Santosh Reddy MaddhuriSantosh Reddy Maddhuri

Hi Aruna,

use the sample code from the following blog and you should be able to convert it.