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.
SaveRecordResult
Represents the result of a Lightning Data Service operation that makes a persistent
change to record data.
SaveRecordResult Object
Callback functions for the saveRecord and deleteRecord functions receive a SaveRecordResult object as their only argument.
| Attribute Name | Type | Description |
|---|---|---|
| objectApiName | String | The object API name for the record. |
| entityLabel | String | The label for the name of the sObject of the record. |
| error | String | Error is one of the following.
error is undefined if the save state is SUCCESS or DRAFT. |
| recordId | String | The 18-character ID of the record affected. |
| state | String | The result state of the operation. Possible values are:
|