Hi,
The following code snippet helps to navigate to the Standard edit record page.
Code Snippet:
this[NavigationMixin.Navigate]({
type: 'standard__recordPage',
attributes: {
recordId: this.recordId,
objectApiName: 'Account',
actionName: 'edit',
},
state: {
nooverride: 1,
backgroundContext: '/lightning/r/Account/' + this.recordid + '/view'
}
});
eval("$A.get('e.force:refreshView').fire();");
}
Reference:
https://developer.salesforce.com/docs/component-library/overview/components
No comments:
Post a Comment