Need your help and thank you in advance.

Trying to create a lightning component that would invoke the New Lead Event action. For example from Lightning Experience in Winter 17, when you click the Lead tab, a drop down menu appears with the +New Lead selection, when clicked it will generate the New Lead popup window.

I'm looking for the lightning component syntax that would call the Lead's event handler when the end user presses a button on a lightning component (CREATE).

Is this even possible?

enter image description here

1 Answer 1


Yes it is possible using force:createRecord event handled by one.app container. You will have create a component that has a button.


<ui:button press="{!c.createRecord}" label="Create Lead"/>


createRecord : function (component, event, helper) {
    var createRecordEvent = $A.get("e.force:createRecord");
        "entityApiName": "Lead"
  • I updated the button component to: <ui:button aura:id="buttonNL" label="NEW LEAD" press="{!c.createRecord}" /> thank you manjit!
    – rouqeOne
    Dec 13, 2016 at 6:34

You must log in to answer this question.

Not the answer you're looking for? Browse other questions tagged .