Activity Forums Salesforce® Discussions  What does e.force:createRecord in var createContact = $A.get("e.force:createRecord"); do in Lightning Component in Salesforce?

  •  What does e.force:createRecord in var createContact = $A.get("e.force:createRecord"); do in Lightning Component in Salesforce?

    Posted by Deepak on February 13, 2020 at 2:24 pm

    What does e.force:createRecord in var createContact = $A.get("e.force:createRecord"); do in Lightning Component in Salesforce?

    Marziya replied 4 years, 10 months ago 2 Members · 1 Reply
  • 1 Reply
  • Marziya

    Member
    February 13, 2020 at 2:29 pm

    Hii Deepak,

    $A.get("e.force:createRecord") globally create contact field   and display the record create page for an object, set the object name on the entityApiName attribute and fire the event. recordTypeId is optional and, if provided, specifies the record type for the created object. defaultFieldValues is optional and, if provided, specifies values to use to prepopulate the create record form.

     

Log In to reply.

Popular Salesforce Blogs

Popular Salesforce Videos