How to Create a Record in Salesforce using Lightning Web Components and Apex class
Use lightning-input to get the user input for Account Name, Phone, Rating and Industry. Add lightning-button to call the JS controller method to create the record. Add onchange handler for each lightning-input tag to get the updated value in the JS controller.
1. Create HTML Templete
2. Create Javascript File.
3. Create Apex Class
Like our post & bookmark this blog for your future learning.
Any suggestions and improvements are most welcome, please comment your suggestions and improvement in the comment box.
Happy Coding Sharing Is caring. 😀😀😀
Hi i am getting error in Apex: DML requires SObject or SObject list type: Account
ردحذفList
ردحذفLovely blog you haave here
ردحذفإرسال تعليق