You need to sign in to do that
Don't have an account?
NLT
Show Toast Notification to throw error message on deleting the opportunity product record using LWC.
Show Toast Notification to throw error message on deleting the opportunity product record using LWC. When I try to delete records, I get a generic error (Can't save records with errors.) as shown in below screenshot and would like to get the custom error message (i.e. Opportunity Product Cannot Be Deleted.) coded in the LWC.
Kindly refer this link to show toast message in LWC :- https://www.sfdcpoint.com/salesforce/lightning-web-component-lwc-toast-messages/
If this helps, kindly mark it as the best answer.
Thanks