Hi, I have embedded lighting component in vf page the component has NEW button to create record and i have added that page to detail page URL action but below code is not working. var createRecordEvent = $A.get("e.force:createRecord"); createRecordEvent.setParams({ "entityApiName": "Account" }); createRecordEvent.fire(); But it is working if detail page button is lightning component. If it is lightning component detail page button the action is open in new model lightning window. Can you please help me on this. Thanks, Ramesh
Awesome content.. Thanks.
Hi,
I have embedded lighting component in vf page the component has NEW button to create record and i have added that page to detail page URL action but below code is not working.
var createRecordEvent = $A.get("e.force:createRecord");
createRecordEvent.setParams({
"entityApiName": "Account"
});
createRecordEvent.fire();
But it is working if detail page button is lightning component.
If it is lightning component detail page button the action is open in new model lightning window.
Can you please help me on this.
Thanks,
Ramesh
Can we find this code somewhere?
Awesome
lightningStyleSheet='true'