To get the current recordId when we create a quick action with LWC we have to use the below code snippet.
_recordId;
set recordId(recordId) {
if (recordId !== this._recordId) {
this._recordId = recordId;
Note:
LWC quick actions don’t pass in recordId in connectedCallback()
Reference:
No comments:
Post a Comment