import { mix, useRecordFields, BoltElement } from 'c/bolt';
export default class myLwc extends mix( [useRecordFields, fields], BoltElement) { }
Constructor
fields
Field[]
import FirstName from '@salesforce/schema/Case.Contact.FirstName';import ContactId from '@salesforce/schema/Case.ContactId';export default class myLwc extends mix( [useRecordFields, [FirstName, ContactId]], BoltElement) { @api recordId; }
Record
import FirstName from '@salesforce/schema/Case.Contact.FirstName';import ContactId from '@salesforce/schema/Case.ContactId';export default class myLwc extends mix( [useRecordFields, [FirstName, ContactId]], BoltElement) { @api recordId; doSomething() { console.log(this.Case.Contact.FirstName); } }