useDML
Import
Usage
Methods
saveRecord(params) : Promise<Record>
Name | Type | Description |
---|---|---|
record | Record | Record to update or insert |
objectApiName | ObjectApiName | Object API Name |
Example
deleteRecord(recordId) : Promise<RecordId>
Name | Type | Description |
---|---|---|
recordId | RecordId | Id of the record to delete |
Example
saveRecords(params) : Promise<Record[]>
Name | Type | Description |
---|---|---|
records | Record[] | Records to update or insert |
objectApiNames | ObjectApiName[] | Object API Names |
Example
deleteRecords(recordId[]) : Promise<RecordId[]>
Name | Type | Description |
---|---|---|
recordIds | RecordId[] | Id of the records to delete |