I am trying to place a LWC component in quick action and trying to do some logic depends on the record ID and I am getting the record ID like this inside LWC

 @api recordId;

and my account record detail page URL is


when I place component like this outside of Highlights panel , I am getting correct record ID

enter image description here

recordId Outside:>>  0012F00000pT6aoQAC

but when I place it inside Highlight panel like this enter image description here

I am getting recordID as undefined

recordId Inside:>>  undefined

How to pass correct record ID inside Highlights panel?

  • salesforce.stackexchange.com/questions/347055/…. This link helped me to get the answer
    – klnavi
    Commented Jul 5, 2021 at 3:59
  • record actions are headless so you it wont set record ID in your connected callback, rather call @api invoke(){} to check your record ID
    – Elijah
    Commented Jul 5, 2021 at 4:04


You must log in to answer this question.

Browse other questions tagged .