You need to sign in to do that
Don't have an account?
NLT
When clicking on the delete button should throw the exception message to users except for the system admin with verbiage 'Not to delete the opportunity product'.
When clicking on the standard delete button for opportunity product as shown in below screenshot should throw the exception message to users except for the system admin with verbiage 'Not to delete the opportunity product'. Please provide apex logic for it.
try with below trigger.
If this helps, Please mark it as best answer.
Thanks!!