Update Record using lightning/uiRecordApi



Update Record using lightning/uiRecordApi

In this topic, we will demonstrate about how to update record using lightning/uiRecordApi.

Syntax

import { updateRecord } from 'lightning/uiRecordApi';
updateRecord(recordInput: Record, clientOptions?: Object): Promise<Record>

for more information click here.

Demonstration

In this demonstration, first I am getting Account records in a DataTable and then once you select any record, it will update Case record Description to Account Name. See below ⬇️.



Apex Controller

HTML File

JS File




Follow me on linkedIn and Twitter for such more related post


Comments