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?

  • Deepak

    Member
    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

    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.

     

Viewing 1 - 2 of 2 posts

Log In to reply.

Popular Salesforce Blogs

Popular Salesforce Videos