binxie
2024-01-20 e0de9222da210f9c8eb1a9f5400f936a14923e11
1
2
3
4
5
6
7
8
9
10
11
import { LightningElement, api } from 'lwc';
import NAME_FIELD from '@salesforce/schema/Lead.Name';
 
export default class NewLeadTest extends LightningElement {
    // Expose a field to make it available in the template
    nameField = NAME_FIELD;
 
    // Flexipage provides recordId and objectApiName
    @api recordId;
    @api objectApiName;
}