Select your Language

Navigation to the record detail page in Lightning page

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