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
恵美子 大橋恵美子 大橋 

JavaScriptボタンのlightning対応方法

リストビューのレコードに対して一括アクションを実行するためのJavaScriptボタンがございます。
コードは以下の通りです。
こちらをlightningでも使用する方法をご存知の方がいらっしゃいましたらご教示頂きたく存じます。

{!REQUIRESCRIPT('/soap/ajax/28.0/connection.js')}
{!REQUIRESCRIPT('/soap/ajax/28.0/apex.js')}

var chk = sforce.apex.execute( 'GrobalClass', 'checkSeikyuUser',{});

if(chk == "false"){
alert("権限がありません。");
}
else{

var records = {!GETRECORDIDS( $ObjectType.Item__c )};
var result = sforce.apex.execute( 'invoiceController', 'validate', {idList:records});

var r = eval("("+ result +")");

if(r.isSuccess==false){
alert(r.mess);
}else{
window.open("/apex/invoiceOnly?id="+records, width=800, height=600);
}
}
AnudeepAnudeep (Salesforce Developers) 
Hi Emiko, 

Have you tried the Lightning Experience Configuration Converter 

With this tool, you can recreate the JavaScript buttons and links as Lightning components, quick actions, or other declarative solutions

Anudeep
恵美子 大橋恵美子 大橋
Anudeep  ありがとうございます。
試してみましたが出来ませんでした。