LightningComponentResource

Represents a Lightning web component resource, such as HTML markup, JavaScript code, a CSS file, an SVG resource, or an XML configuration file.

Version 

Introduced in API version 45.0.

Supported SOAP API Calls 

create(), delete(), describeSObjects(), query(), retrieve(), update(), upsert()

Supported REST API Methods 

DELETE, GET, HEAD, PATCH, POST, Query

Special Access Rules 

  • As of Summer ’20 and later, only your Salesforce org’s internal users can access this object.

Fields 

FilePath 

  • Type: string

  • Required: No

  • Properties: Create, Filter, Group, Sort, Update

  • Introduced: API version 45.0

  • Description: The path to the resource.

Format 

  • Type: picklist

  • Required: No

  • Properties: Create, Filter, Group, Restricted picklist, Sort, Update

  • Introduced: API version 45.0

  • Description: The format of the resource.

  • Possible values:

    • html — 0

    • js — 1

    • css — 2

    • json — 3

    • xml — 4

    • svg — 5

    • ts — 6

LightningComponentBundleId 

  • Type: reference

  • Required: No

  • Properties: Create, Filter, Group, Sort

  • Introduced: API version 45.0

  • Description: The ID of the bundle containing the resource.

  • Relationship name: LightningComponentBundle

  • Relationship type: masterdetail

  • Refers to: LightningComponentBundle

ManageableState 

  • Type: picklist

  • Required: No

  • Properties: Filter, Group, Nillable, Restricted picklist, Sort

  • Description: Indicates the manageable state of the specified component that is contained in a package:

  • beta

  • deleted

  • deprecated

  • deprecatedEditable

  • installed

  • installedEditable

  • released

  • unmanaged

This field is available in API version 38.0 and later.

  • Possible values:

    • beta — beta

    • deleted — deleted

    • deprecated — deprecated

    • deprecatedEditable — deprecatedEditable

    • installed — installed

    • installedEditable — installedEditable

    • released — released

    • unmanaged — unmanaged

Source 

  • Type: textarea

  • Required: No

  • Properties: Create, Update

  • Introduced: API version 45.0

  • Description: The contents of the definition. This is all the markup or code for the definition.

Usage 

For more information about Lightning web components, see Lightning Web Components Developer Guide.

DID THIS ARTICLE SOLVE YOUR ISSUE?
Let us know so we can improve!