① ●●-meta.xml の定義について
<?xml version="1.0" encoding="UTF-8"?>
<LightningComponentBundle xmlns="http://soap.sforce.com/2006/04/metadata">
<apiVersion>52.0</apiVersion>
<isExposed>true</isExposed>
<targets>
<target>lightning__RecordAction</target>
</targets>
<targetConfigs>
<targetConfig targets="lightning__RecordAction">
<actionType>ScreenAction</actionType>
</targetConfig>
</targetConfigs>
</LightningComponentBundle>
actionType : ScreenAction 画面あり。Action:画面なし(裏処理のみ)
➁ ●●.js
処理入口: invoke 固定の記載
@api invoke() {
// Do something
}
③ recordIdの取得
_recordId;
@api set recordId(value) {
this._recordId = value;
// do your thing right here with this.recordId / value
}
get recordId() {
return this._recordId;
}