Salesforce Fact #752 | Access recordId in LWC screen action

While accessing recordId in LWC screen action in other than @wire method, it shows undefined. To access the recordId value, we need to use currentPageReference.

Reference: https://salesforce.stackexchange.com/questions/344045/recordid-is-undefined-in-lwc-quick-action-component

Attached is the screenshot.



Comments

Popular posts from this blog

Salesforce Fact #192 | Call batch apex from flow

Salesforce Fact #457 | Get current user role name in flow