You need to sign in to do that
Don't have an account?
Aruna
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
Thank you,
Aruna.
We have a Javascript button which calls the web service method. Below is the code
{!REQUIRESCRIPT("/soap/ajax/29.0/connection.js")} {!REQUIRESCRIPT("/soap/ajax/29.0/apex.js")} 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,
Aruna.
Hi Aruna,
use the sample code from the following blog and you should be able to convert it.
http://codewithajay.blogspot.com/2017/08/Convert-custom-button-calling-web-service-to-Lightning.html
Regards,
Santosh