Newer Version Available

This content describes an older version of this product. View Latest

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 you create an unauthenticated site or make pages public in an authenticated site, make sure that you also enable the following settings in the Administration workspace under Preference.

  • 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.

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

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

Important