Create Record using lightning/uiRecordApi
In this topic we will see demonstration of how to create record using lightning/uiRecordApi
Syntax
import { createRecord } from 'lightning/uiRecordApi';
createRecord(recordInput: Record): Promise<Record>
The createRecord(recordInput)
function returns a Promise object that resolves when the record is created. To return record data back to the component, use the then()
block.
Demonstration
In this example, I have create custom ui to create Account record
Follow me on linkedIn and Twitter for such more related post
Comments
Post a Comment