We are facing issue while using "force:createRecord" event in lightning. Its working for Standard object when we are giving entityApiName as "Account" but on the same hand if we are doing it with custom object its not working.
Working:-
({
createRecord : function(component, event, helper) {
var createRecordEvent = $A.get("e.force:createRecord");
createRecordEvent.setParams({
"entityApiName": "Account"
});
createRecordEvent.fire();
}
})
Not Working:-
({
createRecord : function(component, event, helper) {
var createRecordEvent = $A.get("e.force:createRecord");
createRecordEvent.setParams({
"entityApiName": "CustomeObj__c"
});
createRecordEvent.fire();
}
})