3

In lightning experience clicking on the "New" button for an object opens a new pop-up to fill the data and create that object

Is there a way to redirect to/open that new record creation popup by navigating to a specific URL?

Create Record

2 Answers 2

4

If i understood correctly, you want to open this popup in a custom component or a button/url. If so, you can try using force:createRecord.

You can check this link for more: force:createRecord or createRecord Documentation

3

There is no such URL that you can use the method suggested by @brahmaji you can create a component and in the component's init method you can write the code to open the popup to create the record.

({
    init:function(c, e, h) {
        var createRecordEvent = $A.get("e.force:createRecord");
        createRecordEvent.setParams({ 
            "entityApiName": "Account"
        });
        createRecordEvent.fire();
    },
})
0

You must log in to answer this question.

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