Activity Forums Salesforce® Discussions How do we use lightning data service in Salesforce?

  • Marziya

    Member
    July 31, 2020 at 2:45 pm

    To create a record using Lightning Data Service, declare force:recordData without assigning a recordId. Next, load a record template by calling the getNewRecord function on force:recordData. Finally, apply values to the new record, and save the record by calling the saveRecord function on force:recordData.

  • Sumit

    Member
    August 3, 2020 at 5:01 am

    To create a record using Lightning Data Service, declare force:recordData without assigning a recordId. Next, load a record template by calling the getNewRecord function on force:recordData. Finally, apply values to the new record, and save the record by calling the saveRecord function on force:recordData.

Log In to reply.

Popular Salesforce Blogs

Popular Salesforce Videos