Skip to content

unable to import RecordType.DeveloperName from @salesforce/schema #2808

Open
@mateuszzw

Description

@mateuszzw

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

Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment

Metadata

Metadata

Assignees

No one assigned

    Labels

    External: Other SalesforceCategorizes issue or PR as related to Salesforce related features.

    Type

    No type

    Projects

    No projects

    Milestone

    No milestone

    Relationships

    None yet

    Development

    No branches or pull requests

    Issue actions