Open
Description
Description
@Salesforce/Schema behaves inconsistently - it's possible to import standard and custom sObject's fields, e.g. Contact.Name, but if there's an import for RecordType.DeveloperName there's an error on the deployment attempt.
Steps to Reproduce
Create LWC component and include the following import in the controller:
import RECORD_TYPE_DEVELOPER_NAME from '@salesforce/schema/RecordType.DeveloperName';
Expected Results
successful import
Actual Results
Error:(1, 1) FIELD_INTEGRITY_EXCEPTION - Invalid reference RecordType.DeveloperName of type sobjectField in file example.js: Source
Browsers Affected
not applicable
Version
- latest
Activity