+ Start a Discussion
Pavushetti Abhilash 3Pavushetti Abhilash 3 

CREATE RECORD ID FOR CUSTOM OBJECT IN LWC

How to create record id for custom object in lwc. And How to pass the custom object record id in LWC.
CharuDuttCharuDutt
Hii Pavushetti
Try Below Code
LWC
<template>

RecordId : {recordId}

</template>


JS

@api recordId;


XML

<isExposed>true</isExposed>
    <targets>
        <target>lightning__RecordPage</target>
    </targets>
Please Mark It As Best Answer If It Helps
Thank You!