You are here:
Supported and Unsupported LWC Adapters for Offline Use
Review which Lightning Data Service (LDS) wire adapters support offline data resolution in the Life Sciences Cloud mobile app. Use this information to design your Lightning Web Component (LWC) components for offline use.
Required Editions
| Available in: Lightning Experience |
| Available in: Enterprise and Unlimited Editions with Life Sciences Cloud, Life Sciences Cloud for Customer Engagement Add-on license, and the Life Sciences Customer Engagement managed package. |
Supported Adapters
When you turn on offline support, the following adapters have local handlers and resolve requests from the device's local database:
Record Operations
| Adapter | Module | Offline Behavior |
|---|---|---|
getRecord |
lightning/uiRecordApi |
Returns field values for previously synced records. |
getRelatedListRecords |
lightning/uiRelatedListApi |
Returns child records via a named relationship. |
createRecord |
lightning/uiRecordApi |
Creates a record locally with a temporary offline ID and syncs on reconnect. |
updateRecord |
lightning/uiRecordApi |
Updates a record in the local database. |
deleteRecord |
lightning/uiRecordApi |
Marks a record as deleted locally and syncs on reconnect. |
getRecordCreateDefaults |
lightning/uiRecordApi |
Returns cached default field values and layout info. |
Metadata and Object Info
| Adapter | Module | Offline Behavior |
|---|---|---|
getObjectInfo |
lightning/uiObjectInfoApi |
Returns object schema including fields, relationships, CRUD access, and record types. |
getObjectInfos |
lightning/uiObjectInfoApi |
Returns batch object metadata. Partial failures are possible. |
Picklist Values
| Adapter | Module | Offline Behavior |
|---|---|---|
getPicklistValues |
lightning/uiObjectInfoApi |
Returns picklist label and value pairs for a single field. |
getPicklistValuesByRecordType |
lightning/uiObjectInfoApi |
Returns all picklist fields for an object and record type. |
Layout and UI
| Adapter | Module | Offline Behavior |
|---|---|---|
getLayout |
lightning/uiRecordApi |
Returns the record page layout from local metadata. |
getRecordUi |
lightning/uiRecordApi |
Returns combined record, layout, and object info. |
Lookups
| Adapter | Module | Offline Behavior |
|---|---|---|
getLookupRecords |
lightning/uiRecordApi |
Searches the local database for lookup field matches. |
Unsupported Adapters
The following adapters don't have offline handlers. When the device is offline, these adapters can't resolve requests locally.
| Adapter | Module |
|---|---|
notifyRecordUpdateAvailable |
lightning/uiRecordApi |
getRelatedListInfo |
lightning/uiRelatedListApi |
getRelatedListInfoBatch |
lightning/uiRelatedListApi |
getRelatedListsInfo |
lightning/uiRelatedListApi |
getRelatedListRecordsBatch |
lightning/uiRelatedListApi |
getRelatedListCount |
lightning/uiRelatedListApi |
getNavItems |
lightning/uiAppsApi |
graphql |
lightning/uiGraphQLApi |
| Connect API | Any /connect/ endpoint |
| Apex REST | Any /services/apexrest/ endpoint |
| SOQL via REST | /services/data/{version}/query |
Did this article solve your issue?
Let us know so we can improve!
