How can we get the id of the record from on the record Detail page in lwc component?

$recordId

force:hasRecordId

Import { recordId } from ‘lightning/uiRecordApi’;

@api recordId

Verified Answer
Correct Option - d

To get all Infosys Certified Salesforce Lightning Web Components Developer Certification Exam questions Join Telegram Group https://rebrand.ly/lex-telegram-236dee

Telegram