Salesforce Fact #643 | Passing recordId from LWC quick action

Suppose we are using an LWC as a quick action and from that component we are passing the current record Id to a child LWC for further processing.

Now, an interesting thing here is if we are calling an apex method imperatively from the child component using the same recordId passed, then we need to check the value of it before passing, otherwise it passes undefined.

Attached are the screenshots.







Comments

Post a Comment

Popular posts from this blog

Salesforce Fact #192 | Call batch apex from flow

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