Write the code in Lightning Controller:
if(state=='SUCCESS')
{
let resultId = response.getReturnValue();
let navActionNew =$A.get('e.force:navigateToSObject');
navActionNew.setParams({
'recordId':resultId.Id
});
navActionNew.fire();
}
No comments:
Post a Comment