Skip to main content
deleted 8 characters in body
Source Link
Arpit Sethi
  • 564
  • 9
  • 24

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("event"e.force:createRecord");
   
    createRecordEvent.setParams({
        "entityApiName": "Account"                  
    });
    createRecordEvent.fire();
}
})

Not Working:-

({
createRecord : function(component, event, helper) {
     var createRecordEvent = $A.get("event"e.force:createRecord");
   
    createRecordEvent.setParams({
        "entityApiName": "CustomeObj__c"                        
    });
    createRecordEvent.fire();
}
})

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("event.force:createRecord");
   
    createRecordEvent.setParams({
        "entityApiName": "Account"                  
    });
    createRecordEvent.fire();
}
})

Not Working:-

({
createRecord : function(component, event, helper) {
     var createRecordEvent = $A.get("event.force:createRecord");
   
    createRecordEvent.setParams({
        "entityApiName": "CustomeObj__c"                        
    });
    createRecordEvent.fire();
}
})

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();
}
})
deleted 8 characters in body
Source Link
Arpit Sethi
  • 564
  • 9
  • 24

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("event.force:createRecord");
   
    createRecordEvent.setParams({
        "entityApiName": "Account",                        
    });
    createRecordEvent.fire();
}
})

Not Working:-

({
createRecord : function(component, event, helper) {
     var createRecordEvent = $A.get("event.force:createRecord");
   
    createRecordEvent.setParams({
        "entityApiName": "CustomeObj__c",                        
    });
    createRecordEvent.fire();
}
})

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("event.force:createRecord");
   
    createRecordEvent.setParams({
        "entityApiName": "Account",                        
    });
    createRecordEvent.fire();
}
})

Not Working:-

({
createRecord : function(component, event, helper) {
     var createRecordEvent = $A.get("event.force:createRecord");
   
    createRecordEvent.setParams({
        "entityApiName": "CustomeObj__c",                        
    });
    createRecordEvent.fire();
}
})

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("event.force:createRecord");
   
    createRecordEvent.setParams({
        "entityApiName": "Account"                  
    });
    createRecordEvent.fire();
}
})

Not Working:-

({
createRecord : function(component, event, helper) {
     var createRecordEvent = $A.get("event.force:createRecord");
   
    createRecordEvent.setParams({
        "entityApiName": "CustomeObj__c"                        
    });
    createRecordEvent.fire();
}
})
Source Link
Arpit Sethi
  • 564
  • 9
  • 24

force:createRecord issue in winter 18 release

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("event.force:createRecord");
   
    createRecordEvent.setParams({
        "entityApiName": "Account",                        
    });
    createRecordEvent.fire();
}
})

Not Working:-

({
createRecord : function(component, event, helper) {
     var createRecordEvent = $A.get("event.force:createRecord");
   
    createRecordEvent.setParams({
        "entityApiName": "CustomeObj__c",                        
    });
    createRecordEvent.fire();
}
})