We are creating the records using the Lightning component like below
var createRecordEvent = $A.get("e.force:createRecord");
createRecordEvent.setParams({
"entityApiName": "Contact",
"defaultFieldValues": {
'AccountId':accId,
}});
createRecordEvent.fire();
Is there any way to get the ID of the created record after the event is fired and the record is saved.