Note: This release is in preview. Features described here don’t become generally available until the latest general availability date that Salesforce announces for this release. Before then, and where features are noted as beta, pilot, or developer preview, we can’t guarantee general availability within any particular time frame or at all. Make your purchase decisions only on the basis of generally available products and features.

User Interface API

User Interface API allows you to get Salesforce record data into your Lightning web component. LWR sites don’t require anything special when developing your Lightning web components with User Interface API.

To learn more, check out the following topics in the Lightning Web Components Developer Guide.

If your site is public or includes public pages, make sure that you also enable the following settings in the Administration workspace under Preferences.

  • Allow guest users to access public APIs

Lets guest users access any Lightning web components that use the User Interface API, in addition to the API access that it already provides. Enable this setting to give guest users access to Salesforce CMS and record detail pages, such as Knowledge detail pages.

  • Let guest users view asset files, library files, and CMS content available to the site

Lets guest users access Lightning web components that use @salesforce/contentAssetUrl.

Tip