Wednesday 4 May 2022

How to navigate to Standard Edit record page LWC

 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

Best Practices for Building Prompt Templates

 Hi, The following best practices should be considered when building prompt templates: Make sure that your prompt templates are concise and ...